2012-09-29 118 views
2

Googlecheckout允許您捲曲客戶訂單,他們返回一個URL然後您將用戶發送到URL,因此他們看不到您發送的數據很好,因此他們可以不要修改它。Amazon Checkout等效於Google Checkout服務器到服務器通信

我看到使用CURL進行Amazon Checkout的輪詢請求,但它是否與Amazon Checkout或Amazon FPS(靈活支付系統)中存在相同的功能?

谷歌代碼:https://developers.google.com/checkout/developer/Google_Checkout_HTML_API#api_details https://developers.google.com/checkout/developer/Google_Checkout_HTML_API#integration_overview //捲曲實例,從這裏滾動向下點點。

_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:[email protected]/api/checkout/v2/requestForm/Merchant/P_MERCHANT_ID 

回答

相關問題