如何设置直接付款的贝宝重复付款的结束日期? [英] How to Set end date for paypal Recurring Payments With Direct Payment?

查看:133
本文介绍了如何设置直接付款的贝宝重复付款的结束日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用直接付款的定期付款( https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_WPRecurringPayments#id08669F0705Z )

I am using Recurring Payments With Direct Payment( https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_WPRecurringPayments#id08669F0705Z )

我将参数设置如下,并且工作精细,

I set parameter as below and WORKING FINE,

$firstName = urlencode('MyName');//urlencode('customer_first_name');
$lastName = urlencode('MySurname');//urlencode('customer_last_name');
$creditCardType = urlencode('VISA');//urlencode('customer_credit_card_type');
$creditCardNumber = urlencode('455743552XXXXXXXX');//urlencode('customer_credit_card_number');
$expDateMonth = '07';//'cc_expiration_month';
$expDateYear = urlencode('2017');//urlencode('cc_expiration_year');
$padDateMonth = urlencode(str_pad($expDateMonth, 2, '0', STR_PAD_LEFT));
$amount =  urlencode('5');// urlencode('example_payment_amuont');
$startDate = urlencode("2012-07-17T0:0:0");
$endDate = urlencode("2012-07-21T0:0:0");

$billingPeriod = urlencode("Day");              // or "Day", "Week", "SemiMonth", "Year"
$billingFreq = urlencode("1");                      // combination of this and billingPeriod must be at most a year
$currencyID = urlencode("USD"); 

$nvpStr = "&CREDITCARDTYPE=$creditCardType".
          "&ACCT=$creditCardNumber".
          "&EXPDATE=$padDateMonth$expDateYear".
          "&FIRSTNAME=MyFirstName".
          "&LASTNAME=MyLastName".
          "&PROFILESTARTDATE=$startDate".
          "&PROFILEENDDATE=$endDate".     // **not working**
          "&BILLINGPERIOD=$billingPeriod".
          "&BILLINGFREQUENCY=$billingFreq".
          "&AMT=$amount&DESC=Test Recurring Payment";

$httpParsedResponseAr = PPHttpPost('CreateRecurringPaymentsProfile', $nvpStr);

现在我的问题是未设置结束日期,因此如果有人有想法请回覆. 我想要用于设置结束日期的参数.

Now my issue is end date not set, so please reply if anybody had idea. I want parameter for setting end date.

感谢, 基兰·夏尔马(Kiran Sharma).

Thankx, Kiran Sharma.

推荐答案

我刚刚找到了答案,

其" TOTALBILLINGCYCLES "(总数)将设置要发生的周期数.

its "TOTALBILLINGCYCLES" which will set the number of cycles to occure.

如上所述, $ billingPeriod = urlencode("Day"); //周期为每天 $ billingFreq = urlencode("1"); //频率为1.所以,每天都要付款

as above i use, $billingPeriod = urlencode("Day"); // the cycle is per day $billingFreq = urlencode("1"); // freq is 1. so, payment colledt every day

& TOTALBILLINGCYCLES = 15"//现在,当我使用此参数时,该周期发生15次,因此15天内付款15.

这篇关于如何设置直接付款的贝宝重复付款的结束日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆