docs: update info on return_url

This commit is contained in:
AJ ONeal 2021-10-12 01:43:47 -06:00
parent c1ad8a490a
commit e02686c676
2 changed files with 13 additions and 4 deletions

View File

@ -57,11 +57,22 @@ PayPal.Plan.list();
PayPal.Plan.details(id);
PayPal.Plan.update(id, { description }); // event_type: "BILLING.PLAN.UPDATED"
PayPal.Subscription.create({ ... });
PayPal.Subscription.createRequest({ ... });
PayPal.Subscription.details(id);
PayPal.Subscription.cancel(id, { reason });
```
# Redirects
Subscription Request `return_url` will include the following:
```txt
https://example.com/redirects/paypal-checkout/return
?subscription_id=XXXXXXXXXXXXXX
&ba_token=BA-00000000000000000
&token=XXXXXXXXXXXXXXXXX
```
# Webhooks
Webhooks can be set up in the Application section of the Dashboard:
@ -72,8 +83,6 @@ You'll see a list of applications. Click on one to access the webhooks.
# Notes
![](https://i.imgur.com/brFTseM.png "PayPal Checkout API Flow")
Note: Just about everything in the PayPal SDK that uses `ALL_CAPS` is a
`constant`/`enum` representing an option you can pick from limited number of
options.

View File

@ -102,7 +102,7 @@ async function test() {
*/
},
application_context: {
brand_name: "root",
brand_name: "Bliss via The Root Group, LLC",
locale: "en-US",
shipping_preference: Subscription.shipping_preferences.NO_SHIPPING,
user_action: Subscription.actions.SUBSCRIBE_NOW,