我正在使用Paypal支付高級與託管結帳頁面(iframe)。這給客戶一個選擇,點擊貝寶的快速結賬「pay with paypal」(按鈕)或使用信用卡付款。一切似乎都很好,除了我在使用NVP API傳遞參數時,在使各個訂單項顯示時失敗。相反,我只看到總金額(請參閱下圖)。使用Paypal支付高級(和NVP API)的PayPal快速結賬的訂單項
paypal checkout http://i41.tinypic.com/sctgg8.jpg
而且我也相信,這意味着該行項目並不是在所有的(甚至當我支付使用的信用卡),因爲我沒有看到任何行項目,當我登錄到貝寶查看已發送交易的細節。
這裏是我目前使用的NVP參數:
"PARTNER" => "PayPal",
"VENDOR" => "company_here",
"USER" => "user_here",
"PWD" => "password_here",
"TRXTYPE" => "S",
"AMT" => "2.16",
"ITEMAMT" => "2.00",
"TAXAMT" => "0.16",
"L_NAME0" => "Test Product 1",
"L_DESC0" => "Test Product Description",
"L_AMT0" => "1.00",
"L_TAXAMT0"=> "0.08",
"L_QTY0" => "1",
"L_NAME1" => "Test Product 2",
"L_DESC1" => "Test Product 2 description",
"L_AMT1" => "1.00",
"L_TAXAMT1"=> "0.08",
"L_QTY1" => "1",
"CUSTOM" => "Custom Text Here",
"INVNUM" => "Invoice12345",
"CURRENCY" => "USD",
"CREATESECURETOKEN" => "Y",
"SECURETOKENID" => "token_here",
任何想法我做錯了嗎?
哦哇。我想我需要回到他們的電話! – prograhammer
隨意張貼你正在傳遞的參數的完整列表。如果它仍然給你的問題。我們的運費和稅款計算出現了一些奇怪的錯誤.. –
請分享你如何完成這項工作的細節。 – nuander