Paypal Rest API-来自批准URL的令牌生命周期 [英] Paypal Rest API - Token life time from approval URL

查看:110
本文介绍了Paypal Rest API-来自批准URL的令牌生命周期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Paypal Rest API,我的问题是:

I use Paypal Rest API and my question is:

批准网址中的令牌有效期是多长时间?我想将此令牌(也与我的令牌一起)存储到数据库中,并生成与我的令牌的链接.稍后,如果我单击此链接(将我的令牌替换为Paypal令牌),我想重定向到Paypal.

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.

如果我尝试使用一些旧令牌,则贝宝网站会收到此交易已过期"和您的会话已结束"的错误消息.

If i tried some old token, paypal site get error with "This transaction has expired" and "Your session has ended".

批准网址示例:

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屋!

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