Paypal Rest API - 来自批准 URL 的令牌生命周期 [英] Paypal Rest API - Token life time from approval URL
问题描述
我使用 Paypal Rest API,我的问题是:
I use Paypal Rest API and my question is:
来自批准 URL 的 令牌 的有效期是多久?我想将此令牌(也与我的令牌)存储到数据库并生成与我的令牌的链接.稍后,如果我单击此链接(用贝宝令牌替换我的令牌),我想重定向到贝宝.
How long is token from approval URL valid? I want to store this token (also with my token) to the database and generate link with my token. Later if I click to this link (replace my token with paypal token) I want to redirect to paypal.
如果我尝试了一些旧令牌,paypal 网站会出现此交易已过期"和您的会话已结束"的错误.
If i tried some old token, paypal site get error with "This transaction has expired" and "Your session has ended".
批准 URL 示例:
https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-2W069482J43318257
谢谢.祝你有美好的一天:)
Thank you. Have a nice day :)
推荐答案
他们说 3 小时后到期,您可以联系客服将其延长至 72.使用过,但从未联系过他们,所以...
They say it expires after 3 hours, and you can extend it to 72 by contacting customer service. Used it, but never contacted them, so...
文档:https://developer.paypal.com/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/
这篇关于Paypal Rest API - 来自批准 URL 的令牌生命周期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!