贝宝parameater创建重复配置文件给错误可以一个请帮我(paypal parameater t

2019-10-23 11:25发布

我使用的卷曲得到token_id正常创建贝宝经常性配置文件,它的工作若干时间,但它给这个PARAMS错误

Array
(
    [user] => shamim_api1.xxxxxxxx.com
    [pwd] => UK8XH8T5H6RSQELU
    [signature] => AFcWxV21C7fd0v3bYYYRCpSSRl31AQIeUAbp6QyKOeJ.4B1pPA-HfVSD
    [AMT] => 1.00
    [CURRENCYCODE] => USD
    [PAYMENTACTION] => Sale
    [returnUrl] => http://xxx.xxdemo.com/xxup/php/payment/process_recuring
    [cancelUrl] => http://xxx.xxdemo.com/xxup/php/payment/cancelled
    [notifyURL] => http://xxx.xxdemo.com/xxup/php/payment/notify
    [PROFILESTARTDATE] => 2015-06-22 14:43:04
    [METHOD] => SetExpressCheckout
    [BILLINGTYPE] => RecurringPayments
    [BILLINGAGREEMENTDESCRIPTION] => Recuring payment of 1.00 per 1 Day for 12 months 
    [DESC] => Recuring payment of 1.00 per 1 Day for 12 months
    [BILLINGPERIOD] => Day
    [SHIPPINGAMT] => 0
    [MAXFAILEDPAYMENTS] => 1
    [custom] => SUB_R_136
    [AUTOBILLOUTAMT] => 1.00
    [BILLINGFREQUENCY] => 1
    [TRIALTOTALBILLINGCYCLES] => 365
    [VERSION] => 86.0
    [NOSHIPPING] => 1
)

它给错误:

 Array
(
[TIMESTAMP] => 2015-06-22T09:15:15Z
[CORRELATIONID] => eb6b1e9564fbb
[ACK] => Failure
[VERSION] => 86
[BUILD] => 17098556
[L_ERRORCODE0] => 11518
[L_ERRORCODE1] => 11516
[L_SHORTMESSAGE0] => Invalid billing period.
[L_SHORTMESSAGE1] => Invalid billing frequency
[L_LONGMESSAGE0] => Billing period must be one of Day, Week, SemiMonth, or Year
[L_LONGMESSAGE1] => Billing frequency must be > 0 and be less than or equal to one year
[L_SEVERITYCODE0] => Error
[L_SEVERITYCODE1] => Error
)

我不能假设的原因为错误THOS所有帕拉姆是按照错误是正确的...请一个帮我...

Answer 1:

您指定部分两种不同的结算周期,TRIAL(免费)和定期(支付)。

由于你的描述建议你不打算有一个试用期(一年),而是实际上打算每天账单一年,改变TRIALTOTALBILLINGCYCLES到TOTALBILLINGCYCLES。 这会给你所有三项必需的参数(周期型,天的周期数和周期数)来定义的支付期,并没有这三个参数的试用期(所以不会有试用期)。



文章来源: paypal parameater to create recurring profile is giving error can one please help me out