Googlecheckout 允许您 CURL 客户订单,他们返回一个 URL,然后您将用户发送到该 URL,因此他们看不到您发送的数据,因此他们无法修改它。
我看到有对带有 CURL 的 Amazon Checkout 的轮询请求,但是在 Amazon Checkout 或 Amazon FPS(灵活支付系统)中是否存在相同的功能?
Google 代码:https ://developers.google.com/checkout/developer/Google_Checkout_HTML_API#api_details https://developers.google.com/checkout/developer/Google_Checkout_HTML_API#integration_overview // CURL 示例,从这里向下滚动一点。
_type=checkout-shopping-cart
&shopping-cart.items.item-1.item-name=Peanut%20Butter
&shopping-cart.items.item-2.item-name=Strawberry%20Jelly
&shopping-cart.items.item-1.item-description=Made%20from%20peanuts
&shopping-cart.items.item-2.item-description=Made%20from%20strawberries
因此请求看起来像这样。
curl -d '_type=checkout-shopping-cart&shopping-cart.items.item-1.item-name=Peanut%20Butter&shopping-cart.items.item-2.item-name=Strawberry%20Jelly&shopping-cart.items.item-1.item-description=Made%20from%20peanuts&shopping-cart.items.item-2.item-description=Made%20from%20strawberries'
https://P_MERCHANT_ID:P_MERCHANT_KEY@checkout.google.com/api/checkout/v2/requestForm/Merchant/P_MERCHANT_ID