本文介绍了贝宝parameater创建重复的配置文件给错误可以一个请帮帮我的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用curl获取token_id来创建贝宝定期配置文件通常它可以工作几次,但是使用此参数会给出错误

I am using curl to get token_id to create paypal recurring profilenormally it worked several time but it giving an error with this 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
)

我无法假设原因,因为错误中的所有参数都是根据错误确定的.请帮我检查一下...

i cannot assume the reason as all the param in error thos are as per the error were proper ...please check an help me out ...

推荐答案

您要部分指定两个不同的计费周期,即试用(免费)和常规(付款).

You are partially specifying two different billing cycles, TRIAL (free) and regular (paying).

由于您的描述表明您不打算试用(一年),而实际上打算每天进行一年计费,因此请将TRIALTOTALBILLINGCYLES更改为TOTALBILLINGCYCLES.这将为您提供所有三个必需的参数(期限类型,一个周期中的天数和周期数)来定义付款期限,而这三个参数都不包含一个试用期(因此将没有试用期).

Since your description suggests you do not intend to have a trial period (of one year) but rather actually intend to bill daily for a year, change TRIALTOTALBILLINGCYCLES to TOTALBILLINGCYCLES. This will give you all three required parameters (period type, number of days in a cycle, and number of cycles) to define the paying period, and none of these three parameters for a trial period (so there will be no trial period).

这篇关于贝宝parameater创建重复的配置文件给错误可以一个请帮帮我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 13:41