我正在使用以下内容生成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。
有没有人有这方面的经验?我错过了什么吗?