用于创建重复配置文件的贝宝参数出现错误,请帮助我
Posted
技术标签:
【中文标题】用于创建重复配置文件的贝宝参数出现错误,请帮助我【英文标题】:paypal parameater to create recurring profile is giving error can one please help me out 【发布时间】:2015-09-07 16:42:25 【问题描述】:我正在使用 curl 获取 token_id 来创建 paypal 定期配置文件 通常它工作了几次,但它给出了这个参数的错误
Array
(
[user] => shamim_api1.xxxxxxxx.com
[pwd] => UK8XH8T5H6RSQELU
[signature] => AFcWxV21C7fd0v3bYYYRCps-s-rl31AQIeUAbp6QyKOeJ.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
)
我不能假设原因,因为所有错误的参数都是正确的... 请帮我看看...
【问题讨论】:
嗨,我已将“TRIALTOTALBILLINGCLES”更改为“TOTALBILLINGCYCLES”,这是我每次收到自动定期付款时都能收到 ipn 通知的一种方式???我的意思是野兔每一天 【参考方案1】:您部分指定了两个不同的计费周期,TRIAL(免费)和常规(付费)。
由于您的描述表明您不打算设置试用期(一年),而是实际上打算在一年内每天计费,请将 TRIALTOTALBILLINGCYCLES 更改为 TOTALBILLINGCYCLES。这将为您提供所有三个必需的参数(周期类型、周期中的天数和周期数)来定义支付周期,而这三个参数都没有用于试用期(因此不会有试用期)。
【讨论】:
以上是关于用于创建重复配置文件的贝宝参数出现错误,请帮助我的主要内容,如果未能解决你的问题,请参考以下文章