billing agreement token lifetime

2019-08-14 15:19发布

When I create an agreement for paypal payment, it return the REDIRECT link with a token.

The user must connect to paypal via this link and accept agreement, then I can execute agreement.

I want to know, how long the REDIRECT link (and its assoicated token) is valid ? I ask because I want top precompute agreement and put them in cache, so If user want to subscribe I use a cached REDIRECT link and it's fast. Create agreement call take 2 seconds, it's too long, speed is critical at checkout stage.

I use the REST API + Java.

1条回答
对你真心纯属浪费
2楼-- · 2019-08-14 15:35

Express Checkout tokens (which is what REST API returns for the Billing Agreement calls) expire after 3 hours.

查看更多
登录 后发表回答