dongqiao8421 2017-09-25 08:17
浏览 71
已采纳

Paypal Rest API - 来自批准URL的令牌生命时间

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条回答 默认 最新

  • duanmei2459 2017-09-25 08:36
    关注

    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/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?