diff --git a/README.md b/README.md index 334c6e8..31413cd 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/test.js b/test.js index 1b9e14f..a3fff3b 100644 --- a/test.js +++ b/test.js @@ -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,