gpt4 book ai didi

php - PayPal 订阅 + 一次性订购 (NVP)

转载 作者:太空宇宙 更新时间:2023-11-03 15:56:44 27 4
gpt4 key购买 nike

很抱歉,如果这个问题在某个地方得到了回答,但据我所知,没有人回答过这个问题。

我会尽快的。我已经创建了允许快速生成 PayPal 字段的功能,因此我们可以通过我们定制的 CMS 进行快速支付。通过这种方式,我们可以创建多个一次性付款或订阅,但是,我们似乎不能同时进行这两项操作。这是我要实现的目标的示例(版本 63):

Array
(
[L_PAYMENTREQUEST_0_NAME0] => XXXXXX
[L_PAYMENTREQUEST_0_DESC0] => XXXXXXXXXX
[L_PAYMENTREQUEST_0_AMT0] => 97.00
[L_PAYMENTREQUEST_0_QTY0] => 1
[L_PAYMENTREQUEST_0_NUMBER0] => 112

[L_PAYMENTREQUEST_0_NAME1] => XXXXXX
[L_PAYMENTREQUEST_0_DESC1] => XXXXXXXXXXX
[L_PAYMENTREQUEST_0_AMT1] => 37.00
[L_PAYMENTREQUEST_0_QTY1] => 1
[L_PAYMENTREQUEST_0_NUMBER1] => 113
[L_BILLINGAGREEMENTDESCRIPTION1] => Subscription: XXXXXXXXX
[L_BILLINGTYPE1] => RecurringPayments

[METHOD] => SetExpressCheckout
[LANDINGPAGE] => Billing
[ALLOWNOTE] => 0
[RETURNURL] => http://XXXXXXXXXX/confirm-order
[CANCELURL] => http://XXXXXXXXXX/checkout/cancelled
[CURRENCYCODE] => AUD
[PAYMENTREQUEST_0_ITEMAMT] => 134
[PAYMENTREQUEST_0_SHIPPINGAMT] => 0
[PAYMENTREQUEST_0_AMT] => 134
[PAYMENTREQUEST_0_CURRENCYCODE] => AUD
....

这就是我要回来的

[L_ERRORCODE0] => 10480
[L_SHORTMESSAGE0] => Invalid Data
[L_LONGMESSAGE0] => Invalid billing agreement type.
[L_SEVERITYCODE0] => Error

谁能告诉我我做错了什么?我进行了一些搜索,但所有结果都是空的。

谢谢!

最佳答案

您的数据中缺少 L_BILLINGTYPE0L_BILLINGAGREEMENTDESCRIPTION0,请添加它们,您应该设置好了:)

关于php - PayPal 订阅 + 一次性订购 (NVP),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11963525/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com