Paypal Rest API - Token life time from approval URL

青春壹個敷衍的年華 提交于 2019-12-11 07:38:58

问题


I use Paypal Rest API and my question is:

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

Example of approval URL:

https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-2W069482J43318257

Thank you. Have a nice day :)


回答1:


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

Docs: https://developer.paypal.com/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/



来源:https://stackoverflow.com/questions/46400527/paypal-rest-api-token-life-time-from-approval-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!