Reputation: 1169
When a PayPal subscription is created, an approval URL is made available in the response.
It looks like this, including a token:
https://www.sandbox.paypal.com/webapps/billing/subscriptions?ba_token=BA-012456AB393ABC890
The documentation does not seem to specify the lifetime of the approval link. Is there a lifetime, or is it eternal?
With previous versions of the PayPal API, similar links have been thought to last for three hours. In Sandbox, the link seems to last longer than 3 hours, although this might be unique to Sandbox.
Upvotes: 0
Views: 378
Reputation: 11
Paypal's Merchant Technical Support says that "Unapproved tokens can be approved as late as 72 hours later". This is undocumented, so it could change in the future.
On the other side, remember that you can retrieve the current approval token by the HATEOAS links when you retrieve a subscription through the API.
Upvotes: 1