docs: notes on cancelling subscription

This commit is contained in:
AJ ONeal 2021-10-16 17:26:04 -06:00
parent 595076ae54
commit 19cfcabc27
1 changed files with 13 additions and 0 deletions

View File

@ -68,6 +68,11 @@ PayPal.Subscription.cancel(id, { reason });
# Redirects
- `return_url`
- `cancel_url`
#### `return_url`
Subscription Request `return_url` will include the following:
```txt
@ -77,6 +82,14 @@ https://example.com/redirects/paypal-checkout/return
&token=XXXXXXXXXXXXXXXXX
```
#### `cancel_url`
The `cancel_url` will have the same query params as the `return_url`.
Also, PayPal presents the raw `cancel_url` and will NOT update the subscription
status. It's up to you to confirm with the user and change the status to
`CANCELLED`.
# Webhooks
Webhooks can be set up in the Application section of the Dashboard: