Google Checkoutを使用してアイテムを販売しようとしています(サンドボックスアカウントを使用しています)。私は私があまりにもバックと呼ばれるようにURLを設定していますGoogleの販売者アカウントでは、今ボタンGoogle Checkoutコールバックの問題
<form method="POST" action="https://sandbox.google.com/checkout/api/checkout/v2/checkoutForm/Merchant/..." accept-charset="utf-8">
<input type="hidden" name="item_name_1" value="Test"/>
<input type="hidden" name="item_description_1" value="An item "/>
<input type="hidden" name="item_quantity_1" value="1"/>
<input type="hidden" name="item_price_1" value="1.50"/>
<input type="hidden" name="item_currency_1" value="GBP"/>
<input type="hidden" name="_charset_"/>
<input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.continue-shopping-url" value="redirect to this url"/>
<input type="image" name="Google Checkout" alt="Fast checkout through Google" src="http://sandbox.google.com/checkout/buttons/checkout.gif?merchant_id=....&w=180&h=46&style=white&variant=text&loc=en_US" height="46" width="180"/>
</form>
買いになり、ユーザーにフォームを表示しています。この例では、私はGoogleドキュメントの例から
// Include Google Checkout PHP Client Library
include ("GlobalAPIFunctions.php");
// Include Response Message Processor
include ("ResponseHandlerAPIFunctions.php");
// Retrieve the XML sent in the HTTP POST request to the ResponseHandler
$xml_response = $HTTP_RAW_POST_DATA;
// Get rid of PHP's magical escaping of quotes
if (get_magic_quotes_gpc()) {
$xml_response = stripslashes($xml_response);
}
// Log the XML received in the HTTP POST request
LogMessage($GLOBALS["logfile"], $xml_response);
/*
* Call the ProcessXmlData function, which is defined in
* ResponseHandlerAPIFunctions.php. The ProcessXmlData will route
* the XML data to the function that handles the particular type
* of XML message contained in the POST request.
*/
ProcessXmlData($xml_response);
をPHPファイルを使用しています問題は、すぐに私は戻って一切のコールを取得していない商品を購入して、です。エラーメッセージも何もないので、何が起こっているのか見ることができますか?うまくいけば、誰かが
おかげ
あなたがこれを見ることになるのかどうかわかりませんが、アドバイスを取った後、私はエラーを見つけました。 「PHPでサーバーにアクセスしようとしたときにエラーが発生しました。これはエラーです。java.io.IOException:エラー 'CLOSED'がURLに接続しています。...... php'なぜこれがそうであるかはっきりしないが、一見するだろう。ありがとう – Biscuit128