docs: notes on cancelling subscription
This commit is contained in:
parent
595076ae54
commit
19cfcabc27
13
README.md
13
README.md
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue