定期付款结算期问题 [英] Recurring payments billing period problems

查看:58
本文介绍了定期付款结算期问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经在我们的网站上实现了PayPal定期付款功能.在订阅结帐期间,用户可以选择检查自动付款,这将向他们收取每1年的费用.

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.

调用DoExpressCheckoutPayment API方法并完成后,我们将调用CreateRecurringPaymentsProfile API方法,并提供以下详细信息:

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

                );

其中,令牌是从SetExpressCheckout API方法调用返回的值.我们将PROFILESTARTDATE设置为今天的日期(2014年10月13日),将BILLINGPERIOD设置为Year,将BILLINGFREQUENCY设置为1.

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:

为什么下一次到期付款日期是今天的日期(我们在2014年10月13日进行了测试),为什么不将其设置为2015年10月13日呢?这是否意味着该用户在2014年将被收取2次费用(一次是在正常的订阅结帐过程中,然后是使用定期付款配置文件机制一次).

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).

提前谢谢.

推荐答案

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

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".

这篇关于定期付款结算期问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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