diff --git a/README.md b/README.md index a2b4844..695e25a 100644 --- a/README.md +++ b/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: