mirror of
https://github.com/therootcompany/paypal-checkout.js.git
synced 2025-05-13 09:36:37 +00:00
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
|
# Redirects
|
||||||
|
|
||||||
|
- `return_url`
|
||||||
|
- `cancel_url`
|
||||||
|
|
||||||
|
#### `return_url`
|
||||||
|
|
||||||
Subscription Request `return_url` will include the following:
|
Subscription Request `return_url` will include the following:
|
||||||
|
|
||||||
```txt
|
```txt
|
||||||
@ -77,6 +82,14 @@ https://example.com/redirects/paypal-checkout/return
|
|||||||
&token=XXXXXXXXXXXXXXXXX
|
&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
|
||||||
|
|
||||||
Webhooks can be set up in the Application section of the Dashboard:
|
Webhooks can be set up in the Application section of the Dashboard:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user