我正在尝试将 Google Wallet 应用到我正在进行的项目中。
当我按下应该转到沙盒结帐网站的按钮时,会生成错误。
<error xmlns="http://checkout.google.com/schema/2" serial-number="f9090666-5c3e-4e40-b1db-aeba824aa7d6">
<error-message>
Malformed URL component: expected agent:, but got Merchant
</error-message>
</error>
我的代码是
<div>
<form method="POST" action="https://sandbox.google.com/checkout/api/checkout/v2/checkoutForm/Merchant/xxxxxxxxxxxxxxxxxxxx">
<input type="image" name="Google Checkout" alt="Fast checkout through Google" src="https://checkout.google.com/buttons/checkout.gif?merchant_id=xxxxxxxxxxxxxxxxxxxx&w=180&h=46&style=white&variant=text&loc=en_US">
</form>
</div>