我正在使用快速结账处理paypal定期付款以获取可变金额。
我几乎完成了所有事情。我正在遵循这个指南:
在第三步之后,我正在做出这样的回应:
[TIMESTAMP] => 2012-05-02T20:33:39Z
[CORRELATIONID] => 6361035da7d80
[ACK] => Failure
[VERSION] => 86
[BUILD] => 2840849
[L_ERRORCODE0] => 11455
[L_SHORTMESSAGE0] => Buyer did not accept billing agreement
[L_LONGMESSAGE0] => Buyer did not accept billing agreement
[L_SEVERITYCODE0] => Error
即使第4步也为我取得了成功,但我没有在这里收到BILLINGAGREEMENTID 我不知道这里有什么问题。请帮帮我。
第4步回复是:
Array
(
[TOKEN] => EC-61326512J28943643
[SUCCESSPAGEREDIRECTREQUESTED] => false
[TIMESTAMP] => 2012-04-23T20:15:29Z
[CORRELATIONID] => 9604631d916a1
[ACK] => Success
[VERSION] => 86
[BUILD] => 2808426
[INSURANCEOPTIONSELECTED] => false
[SHIPPINGOPTIONISDEFAULT] => false
[PAYMENTINFO_0_TRANSACTIONID] => 4N241225R9256962J
[PAYMENTINFO_0_TRANSACTIONTYPE] => expresscheckout
[PAYMENTINFO_0_PAYMENTTYPE] => instant
[PAYMENTINFO_0_ORDERTIME] => 2012-04-23T20:15:27Z
[PAYMENTINFO_0_AMT] => 11.00
[PAYMENTINFO_0_FEEAMT] => 0.62
[PAYMENTINFO_0_TAXAMT] => 0.00
[PAYMENTINFO_0_CURRENCYCODE] => USD
[PAYMENTINFO_0_PAYMENTSTATUS] => Pending
[PAYMENTINFO_0_PENDINGREASON] => paymentreview
[PAYMENTINFO_0_REASONCODE] => None
[PAYMENTINFO_0_PROTECTIONELIGIBILITY] => Ineligible
[PAYMENTINFO_0_PROTECTIONELIGIBILITYTYPE] => None
[PAYMENTINFO_0_SECUREMERCHANTACCOUNTID] => EUS59DJENWC3E
[PAYMENTINFO_0_ERRORCODE] => 0
[PAYMENTINFO_0_ACK] => Success
)
至少4-5天我一直在研究这个问题。
不使用第3步后的响应:
[TOKEN] => EC-6MD78480W9369745J
[SUCCESSPAGEREDIRECTREQUESTED] => false
[TIMESTAMP] => 2012-05-02T20:38:13Z
[CORRELATIONID] => 72306d7db8c1b
[ACK] => Success
[VERSION] => 86
[BUILD] => 2840849
[INSURANCEOPTIONSELECTED] => false
[SHIPPINGOPTIONISDEFAULT] => false
[PAYMENTINFO_0_TRANSACTIONID] => 6EG31415FF2050208
[PAYMENTINFO_0_TRANSACTIONTYPE] => expresscheckout
[PAYMENTINFO_0_PAYMENTTYPE] => instant
[PAYMENTINFO_0_ORDERTIME] => 2012-05-02T20:38:11Z
[PAYMENTINFO_0_AMT] => 11.00
[PAYMENTINFO_0_FEEAMT] => 0.62
[PAYMENTINFO_0_TAXAMT] => 0.00
[PAYMENTINFO_0_CURRENCYCODE] => USD
[PAYMENTINFO_0_PAYMENTSTATUS] => Pending
[PAYMENTINFO_0_PENDINGREASON] => paymentreview
[PAYMENTINFO_0_REASONCODE] => None
[PAYMENTINFO_0_PROTECTIONELIGIBILITY] => Ineligible
[PAYMENTINFO_0_PROTECTIONELIGIBILITYTYPE] => None
[PAYMENTINFO_0_SECUREMERCHANTACCOUNTID] => EUS59DJENWC3E
[PAYMENTINFO_0_ERRORCODE] => 0
[PAYMENTINFO_0_ACK] => Success
答案 0 :(得分:1)
如果您使用沙箱,则需要为沙盒帐户启用参考事务。与paypal签订的账单协议我认为是参考交易。
答案 1 :(得分:0)
在第3步中,如果您已在步骤1中指定 billingtype = MerchantInitiatedBilling ,则无需调用方法 CreateBillingAgreement 。
请尝试此操作并更新回复。
希望这有帮助。