2012-10-02 44 views
1

我的目標是將我們的網站與Amazon Checkout集成。我們已經與谷歌和貝寶apis接口與小問題。但是,對於亞馬遜,我們嘗試了他們提供的PHP代碼,並嘗試使用創建按鈕。使用沙箱中的PHP代碼,我們可以完成訂單,但它會給出一個錯誤,說明付款失敗,您的借記卡沒有收費。在賣方中央,它根本就沒有提供任何信息。Amazon Checkout Sandbox無法處理訂單

當嘗試使用amazons工具創建按鈕並將地址更改爲沙箱地址時,它表示您必須將付款發送至經過驗證的電子郵件地址和帳戶。

該賬戶上有一張信用卡,經過驗證的銀行賬戶,稅務信息已完成並經過驗證的電子郵件。

其他人有類似的問題與亞馬遜?有沒有一個令人興奮的基於非亞馬遜的項目已經成功地與亞馬遜接口,可用於參考。亞馬遜的文檔是......缺乏和遍佈各處。

<form action="https://authorize.payments-sandbox.amazon.com/pba/paypipeline" method="POST"> 
<input type="image" src="https://authorize.payments-sandbox.amazon.com/pba/images/payNowButton.png" border="0"> 
<input type="hidden" name="accessKey" value="MERCHANT_KEY_REMOVED"> 
<input type="hidden" name="amount" value="USD 1.1"> 
<input type="hidden" name="description" value="Test of the Vidya Amazon Payment Alpha"> 
<input type="hidden" name="recipientEmail" value="MERCHANT_EMAIL_REMOVED"> 
<input type="hidden" name="signatureMethod" value="HmacSHA256"> 
<input type="hidden" name="referenceId" value="2"> 
<input type="hidden" name="immediateReturn" value="0"> 
<input type="hidden" name="returnUrl" value="http://yourwebsite.com/return.html"> 
<input type="hidden" name="abandonUrl" value="http://yourwebsite.com/cancel.html"> 
<input type="hidden" name="processImmediate" value="1"> 
<input type="hidden" name="ipnUrl" value="REMOVED"> 
<input type="hidden" name="cobrandingStyle" value="logo"> 
<input type="hidden" name="collectShippingAddress" value="0"> 
<input type="hidden" name="fixedMarketplaceFee" value="0.01"> 
<input type="hidden" name="variableMarketplaceFee" value="4"> 
<input type="hidden" name="signatureVersion" value="2"> 
<input type="hidden" name="signature" value="REMOVED"> 
</form> 
+0

是否有人?亞馬遜開發論壇..真的沒有得到很多的交通方式。 – Iscariot

+0

你能發表一些相關的代碼嗎?根據您提供的信息來確定問題是不可能的。 –

+0

添加了代碼。 – Iscariot

回答

2

因此,這裏是獨家新聞。如果立即處理設置爲1,則必須省略費用字段,否則它將永遠不會被接受。

這兩個需要拆除它的工作

<input type="hidden" name="fixedMarketplaceFee" value="0.01" /> 
<input type="hidden" name="variableMarketplaceFee" value="4" /> 

如果您使用AWS SimplyPay PHP文件,你必須刪除,以便爲他們的工作從所有3個文件的變量。或設置processImmediate = 0.