对不起,如果已经在某处回答了这个问题,但是根据我的发现,没有人回答这个问题。
我会很快的。我创建了一个功能,允许快速生成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
有人能告诉我我做错了什么吗?我做了一些搜索,但所有结果都是空的。
谢谢!
答案 0 :(得分:2)
您的数据中缺少L_BILLINGTYPE0
和L_BILLINGAGREEMENTDESCRIPTION0
,添加它们应该设置:)