用于创建重复配置文件的 paypal parameater 出现错误,有人可以帮我解决一下吗
paypal parameater to create recurring profile is giving error can one please help me out
我正在使用 curl 获取 token_id 来创建贝宝定期配置文件
通常它工作了几次但是它给出了这个参数的错误
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
)
我无法假设原因,因为所有错误的参数都是正确的......
请查看帮助我...
您部分指定了两个不同的计费周期,试用(免费)和常规(付费)。
由于您的描述表明您不打算有试用期(一年),而是实际上打算在一年内每天计费,因此将 TRIALTOTALBILLINGCYCLES 更改为 TOTALBILLINGCYCLES。这将为您提供所有三个必需的参数(周期类型、周期天数和周期数)来定义支付周期,并且这三个参数的 none 用于试用期(因此不会有试用期)。
我正在使用 curl 获取 token_id 来创建贝宝定期配置文件 通常它工作了几次但是它给出了这个参数的错误
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
)
我无法假设原因,因为所有错误的参数都是正确的...... 请查看帮助我...
您部分指定了两个不同的计费周期,试用(免费)和常规(付费)。
由于您的描述表明您不打算有试用期(一年),而是实际上打算在一年内每天计费,因此将 TRIALTOTALBILLINGCYCLES 更改为 TOTALBILLINGCYCLES。这将为您提供所有三个必需的参数(周期类型、周期天数和周期数)来定义支付周期,并且这三个参数的 none 用于试用期(因此不会有试用期)。