2

我正在使用可变金额的快速结账处理贝宝定期付款。

我几乎已经做了所有事情。我正在遵循本指南:

https://www.x.com/developers/paypal/documentation-tools/how-authorize-and-run-reference-transaction-express-checkout

在第三步之后,我得到了这个回复:

[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
4

2 回答 2

1

如果您使用的是沙盒,则需要为沙盒帐户打开参考交易。我认为与贝宝的计费协议是参考交易。

于 2014-02-05T14:46:30.497 回答
0

在步骤 3 中,如果您已经在步骤 1 中指定billingtype = MerchantInitiatedBilling ,则无需调用方法CreateBillingAgreement 。

请尝试此操作并更新响应。

希望这可以帮助。

于 2012-05-02T07:23:44.417 回答