我正在使用以下内容生成 Google Checkout:
echo '<form method="POST"
action="https://sandbox.google.com/checkout/api/checkout/v2/checkoutForm/Merchant/'.$id.'"
accept-charset="utf-8">';
while ($row = mysql_fetch_array($result)) {
echo '<input type="hidden" name="item_name_1" value="'.$row['name'].'"/>';
echo '<input type="hidden" name="item_description_1" value="Your chossen Subscription"/>';
echo '<input type="hidden" name="item_price_1" value="'.$row['price'].'"/>';
echo '<input type="hidden" name="item_currency_1" value="GBP"/>';
echo '<input type="hidden" name="item_quantity_1" value="1"/>';
echo '<input type="hidden" name="item_merchant_id_1" value="1"/>';
}
echo '<input type="hidden" name="_charset_"/>';
// Button code -->
echo '<input type="image"
name="Google Checkout"
alt="Fast checkout through Google"
src="http://sandbox.google.com/checkout/buttons/checkout.gif?merchant_id='.$id.'&w=180&h=46&style=white&variant=text&loc=en_US"
height="46"
width="180" />';
echo '</form>';
我认为这是正确的,并且正在将用户发送到沙盒结帐。然而谷歌给出了这个消息:
哎呀!我们无法处理您的请求。
错误发生时间:2010-07-27T13:16:42 (UTC) (48c5e4fef7fe8)
但我在集成控制台中没有看到任何内容。我已经检查并确认了沙盒帐户的正确商家 ID。
有没有人有这方面的经验?我错过了什么吗?