贝宝账单协议 ID 不来

Posted

技术标签:

【中文标题】贝宝账单协议 ID 不来【英文标题】:paypal billing agreement id is not coming 【发布时间】:2012-05-04 10:33:18 【问题描述】:

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

我几乎已经完成了所有事情。我正在关注本指南:

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

【问题讨论】:

Rahul 你在第 3 步得到 BILLINGAGREEMENTID 吗? @ShaikhFarooque 不,我在第 3 步中没有收到 BILLINGAGREEMENTID Rahul 如果您在第 3 步中注意,您应该得到 BILLINGAGREEMENTID 作为响应。请检查 @rahul 您不会在第 4 步中获得 BILLINGAGREEMENTID,除非您在请求中传递它(作为 REFERENCEID)。请向我们展示第 3 步的结果,然后我们可以进一步帮助您。 我不知道如何解决这个“买家不接受结算协议”。 【参考方案1】:

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

【讨论】:

【参考方案2】:

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

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

希望这会有所帮助。

【讨论】:

以上是关于贝宝账单协议 ID 不来的主要内容,如果未能解决你的问题,请参考以下文章

我可以用信用卡创建账单协议吗(没有贝宝账户)

贝宝订阅更新下一个账单日期

Paypal 账单协议无效的计划 ID PHP

PayPal 账单协议 - 无效的计划 ID .NET

为通过 API 创建的 PayPal 账单协议设置自定义值

使用贝宝参考付款创建帐单协议问题