Recurring payments billing period problems

前提是你 提交于 2019-12-11 05:05:35

问题


We have implemented PayPal recurring payment functionality on our website. During the subscription checkout, users have option to check automatic payment which will charge them every 1 year.

After DoExpressCheckoutPayment API method is called and finished, we call CreateRecurringPaymentsProfile API method with the following details:

$requestParams=array(
                    "TOKEN"=>$token,
                    "PROFILESTARTDATE"=>date("Y-m-d\TH:i:s\Z"),
                    "DESC"=>"Mimi subscription",
                    "BILLINGPERIOD"=>"Year",
                    "BILLINGFREQUENCY"=>"1",
                    "AMT"=>$subscriptionType->price,
                    "CURRENCYCODE"=>"GBP",
                    "PROFILEREFERENCE"=>$transactionId

                );

where the TOKEN is the value returned from the SetExpressCheckout API metod call. We set PROFILESTARTDATE to today's date (13 Oct 2014), BILLINGPERIOD to Year and BILLINGFREQUENCY to 1.

When we test this code, everything seems to be working fine, and recurring payment profile is created, but the following detail is interesting. When I enter to my sandbox account, in my recurring payments profiles I can see the profile previously created. Here is image attached:

Why the Next payment due date is today's date (we did testing on 13th October 2014), and why it is not set to 13 Oct 2015? Is this means that user will be charged 2 times in 2014 (once during normal subscription checkout and then once using recurring payment profile mechanism).

Thx in advance.


回答1:


If you have already charged the buyer for the year 2014 using the "DoExpressCheckout" API then you need to specify the "PROFILESTARTDATE" as "13 Oct 2015". "PROFILESTARTDATE" specifies when the profile is going to be charged , So in your case it should be charged once again and then on "13 Oct 2015".



来源:https://stackoverflow.com/questions/26337705/recurring-payments-billing-period-problems

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!