PayPal经常性付款的开单日期 [英] Billing date in PayPal recurrent payments
问题描述
我正在使用Paypal Rest API进行定期结算.
I am using paypal rest API for recurrent billing.
有什么方法可以预测下一次结算协议的下一次付款日期?
Is there any way to predict date for next payment for billing agreement?
当我创建&执行协议,贝宝将向我提供此信息:
When I create & execute agreement, paypal will provide me this info:
"start_date": "2014-10-26T07:00:00Z",
"cycles_remaining": "1",
"cycles_completed": "0",
"next_billing_date": "2014-10-26T10:00:00Z",
"final_payment_date": "1970-01-01T00:00:00Z",
"failed_payment_count": "0"
当我在next_billing_date之后检查交易时,没有付款.但是,经过较长时间后,付款又到了我检索相同的协议时,我得到了:
When I check transactions after next_billing_date, there is no payment. However, after a longer time a payment arrive and when I retrieve the same agreement, I get this:
"start_date": "2014-10-26T07:00:00Z",
"agreement_details": {
"outstanding_balance": {
"currency": "USD",
"value": "0.00"
},
"cycles_remaining": "0",
"cycles_completed": "0",
"next_billing_date": "2014-11-26T10:00:00Z",
"last_payment_date": "2014-10-28T05:00:55Z",
"last_payment_amount": {
"currency": "USD",
"value": "0.01"
},
"final_payment_date": "1970-01-01T00:00:00Z",
"failed_payment_count": "0"
因此,付款是在协议中规定的日期之后的1天19小时付款.
So the payment was made 1d 19h after the date provided in agreement.
如果这些延迟"最多为3天,那就可以了.但是我需要确定.
If those 'delays' will be max 3 days, it will be OK. But I need to be sure.
我应该指定,这是在沙盒环境中发生的
I should specify, that this happens in sandbox environment
谢谢.
推荐答案
切换到实时"/生产环境后,一切运行良好.
After switching to "Live"/production environment everything is running well.
第一笔交易发生在前30分钟内,随后的交易发生在next_billing_date之后的大约一个小时内.
First transaction occured in first 30 minutes, and following ones in about an hour after next_billing_date.
在沙箱中,仅在此日期之前进行了第一次付款(请参阅Q中的数据). 有趣"的事情是,不仅沙箱,甚至他们的支持似乎都被破坏了……
In sandbox only first payment was made to this date(ref to data in Q). "Funny" thing is, that not only sandbox, but even their support seems to be broken...
另请参阅告诉PayPal自动处理每月付款
这篇关于PayPal经常性付款的开单日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!