点击此链接:
https://developer.paypal.com/docs/classic/express-checkout/integration-guide/ECReferenceTxns/
首先,我调用了快速结账选项,它给我一个 token ID,然后我调用了 CreateBillingAgreement($tokenid)
,它给出了这样的错误:
[TIMESTAMP] => 2017-02-23T11:24:03Z
[CORRELATIONID] => 5cf858da7986
[ACK] => Failure
[VERSION] => 64
[BUILD] => 30029726
[L_ERRORCODE0] => 11455
[L_SHORTMESSAGE0] => Buyer did not accept billing agreement
[L_LONGMESSAGE0] => Buyer did not accept billing agreement
[L_SEVERITYCODE0] => Error
最佳答案
您是否已将买家重定向至 PayPal 结账页面以授权结算协议(protocol)?如 the guide 中所述:
The buyer must log into PayPal once to authorize the billing agreement.
您需要使用 token 将买家的浏览器重定向到 PayPal,这允许买家登录 PayPal 并授权计费协议(protocol),然后 PayPal 将买家的浏览器重定向回您的返回页面(您在 SetExpressCheckout
).之后,您可以使用 token 调用 CreateBillingAgreement
。
希望对您有所帮助。
关于php - 使用 Paypal 引用付款创建结算协议(protocol)问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42414616/