Paypal Rest API - 即时付款生命周期 [英] Paypal Rest API - Immediate Payment life time
问题描述
我没有找到任何关于意图销售"的付款生命周期的信息.如果用户通过关闭贝宝窗口取消付款,那么我应该能够通过 api 查找付款并将他重定向到批准网址来继续付款.但这仅适用于特定时间跨度.我可以查询昨天的付款,响应告诉我付款状态为已创建",但在重定向到批准网址后,paypal 的网站显示:
i didn't find any information about life time of payments with intent "sale". If a user cancel's payment by closing the paypal window, then i should be abled to continue payment by looking up the payment via api and redirect him to the approval url. But this works only for a certain time span. I'm abled to look up payments from yesterday, the response tells me about a payment state of "created" but after redirection to the approve_url paypal's website says:
您的会话已结束.此交易已过期.请返回收件人的网站,使用他们的常规结帐流程完成您的交易.
Your Session has ended. This transaction has expired. Please return to the recipient's website to complete your transaction using their regular checkout flow.
在这种情况下,我想我应该创建一个新的付款.但是在创建新付款之前我应该等待多长时间,因为付款会随着年龄的增长...... - 假设大约 1 小时仍然有效?
I guess i should create a new payment in that case. But how long should i wait before creating a new payment, because payments with age.. - lets say about 1 hour are still valid?
TIA
推荐答案
在必须创建新付款之前,用户有三个小时的时间来批准 PayPal 付款.
The user has three hours to approve of the PayPal payment before a new payment must be created.
这篇关于Paypal Rest API - 即时付款生命周期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!