简体   繁体   English

定期付款结算期问题

[英]Recurring payments billing period problems

We have implemented PayPal recurring payment functionality on our website. 我们已经在我们的网站上实现了PayPal定期付款功能。 During the subscription checkout, users have option to check automatic payment which will charge them every 1 year. 在订阅结帐期间,用户可以选择检查自动付款,这将每1年向他们收费。

After DoExpressCheckoutPayment API method is called and finished, we call CreateRecurringPaymentsProfile API method with the following details: 调用并完成DoExpressCheckoutPayment API方法后,我们将使用以下详细信息调用CreateRecurringPaymentsProfile API方法:

$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. 其中,令牌是从SetExpressCheckout API方法调用返回的值。 We set PROFILESTARTDATE to today's date (13 Oct 2014), BILLINGPERIOD to Year and BILLINGFREQUENCY to 1. 我们将PROFILESTARTDATE设置为今天的日期(2014年10月13日),将BILLINGPERIOD为Year,将BILLINGFREQUENCY为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? 为什么下一次付款到期日是今天的日期(我们在2014年10月13日进行了测试),为什么未将其设置为2015年10月13日? 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). 这是否意味着该用户将在2014年支付2次费用(一次在正常的订阅结帐过程中,然后使用定期付款配置文件机制一次)。

Thx in advance. 提前谢谢。

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". 如果您已经使用“ DoExpressCheckout” API向2014年的买家收取费用,则需要将“ PROFILESTARTDATE”指定为“ 2015年10月13日”。 "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". “ PROFILESTARTDATE”指定何时向配置文件收费,因此,在您的情况下,应再次收费,然后在“ 2015年10月13日”收费。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM