From 19cfcabc2765cb5705e7c4c142f7e929a2c88eba Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 16 Oct 2021 17:26:04 -0600 Subject: [PATCH] docs: notes on cancelling subscription --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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: