DoExpressCheckoutPayment - 订单电子邮件中没有显示任何项目

时间:2014-02-25 18:01:22

标签: php paypal express-checkout

我花了一整天的时间在谷歌上搜索为什么它不起作用而且无法弄明白。我使用PayPal Express来结账。订单包含项目,它们在确认电子邮件中不可见,也不在paypal的仪表板下的任何位置。

它们在付款之前显示正常(因此SetExpressCheckoutPayment调用正常工作),但不适用于DoExpressCheckoutPayment。我将以下参数传递给DoExpressCheckoutPayment

- TOKEN
- PAYERID
- PAYMENTACTION
- AMT
- CURRENCYCODE,
- L_PAYMENTREQUEST_0_QTY0
- L_PAYMENTREQUEST_0_AMT0
- L_PAYMENTREQUEST_0_NAME0
- L_PAYMENTREQUEST_0_DESC0 (the digits at the end increase with next items)
- PAYMENTREQUEST_0_CURRENCYCODE
- PAYMENTREQUEST_0_ITEMAMT

我得到的回应:

[TOKEN] => xxxx
[SUCCESSPAGEREDIRECTREQUESTED] => true
[TIMESTAMP] => 2014%2d02%2d25T18%3a32%3a07Z
[CORRELATIONID] => 21459a872dc21
[ACK] => Success
[VERSION] => 76%2e0
[BUILD] => 9720069
[TRANSACTIONID] => xxx
[RECEIPTID] => xxxx
[TRANSACTIONTYPE] => expresscheckout
[PAYMENTTYPE] => instant
[ORDERTIME] => 2014%2d02%2d25T18%3a32%3a06Z
[AMT] => 1%2e00
[FEEAMT] => 0%2e23
[TAXAMT] => 0%2e00
[CURRENCYCODE] => GBP
[PAYMENTSTATUS] => Completed
[PENDINGREASON] => None
[REASONCODE] => None
[PROTECTIONELIGIBILITY] => Eligible
[INSURANCEOPTIONSELECTED] => false
[SHIPPINGOPTIONISDEFAULT] => false
[PAYMENTINFO_0_TRANSACTIONID] => xxx
[PAYMENTINFO_0_RECEIPTID] => xxx
[PAYMENTINFO_0_TRANSACTIONTYPE] => expresscheckout
[PAYMENTINFO_0_PAYMENTTYPE] => instant
[PAYMENTINFO_0_ORDERTIME] => 2014%2d02%2d25T18%3a32%3a06Z
[PAYMENTINFO_0_AMT] => 1%2e00
[PAYMENTINFO_0_FEEAMT] => 0%2e23
[PAYMENTINFO_0_TAXAMT] => 0%2e00
[PAYMENTINFO_0_CURRENCYCODE] => GBP
[PAYMENTINFO_0_PAYMENTSTATUS] => Completed
[PAYMENTINFO_0_PENDINGREASON] => None
[PAYMENTINFO_0_REASONCODE] => None
[PAYMENTINFO_0_PROTECTIONELIGIBILITY] => Eligible
[PAYMENTINFO_0_PROTECTIONELIGIBILITYTYPE] => ItemNotReceivedEligible%2cUnauthorizedPaymentEligible
[PAYMENTINFO_0_SECUREMERCHANTACCOUNTID] => xxxx
[PAYMENTINFO_0_ERRORCODE] => 0
[PAYMENTINFO_0_ACK] => Success

我们如何破解这个?

1 个答案:

答案 0 :(得分:0)

您必须将所有相同的项目详细信息传递给DECP,就像您使用SEC一样,否则它们将不会包含在付款中。

DECP是最终的全部,全部。在DECP内发送给PayPal的任何数据都包含在付款细节中。没什么,没什么。