mirror of
https://github.com/therootcompany/paypal-checkout.js.git
synced 2025-05-13 09:36:37 +00:00
docs: update info on return_url
This commit is contained in:
parent
c1ad8a490a
commit
e02686c676
15
README.md
15
README.md
@ -57,11 +57,22 @@ PayPal.Plan.list();
|
|||||||
PayPal.Plan.details(id);
|
PayPal.Plan.details(id);
|
||||||
PayPal.Plan.update(id, { description }); // event_type: "BILLING.PLAN.UPDATED"
|
PayPal.Plan.update(id, { description }); // event_type: "BILLING.PLAN.UPDATED"
|
||||||
|
|
||||||
PayPal.Subscription.create({ ... });
|
PayPal.Subscription.createRequest({ ... });
|
||||||
PayPal.Subscription.details(id);
|
PayPal.Subscription.details(id);
|
||||||
PayPal.Subscription.cancel(id, { reason });
|
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
|
||||||
|
|
||||||
Webhooks can be set up in the Application section of the Dashboard:
|
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
|
# Notes
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
Note: Just about everything in the PayPal SDK that uses `ALL_CAPS` is a
|
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
|
`constant`/`enum` representing an option you can pick from limited number of
|
||||||
options.
|
options.
|
||||||
|
2
test.js
2
test.js
@ -102,7 +102,7 @@ async function test() {
|
|||||||
*/
|
*/
|
||||||
},
|
},
|
||||||
application_context: {
|
application_context: {
|
||||||
brand_name: "root",
|
brand_name: "Bliss via The Root Group, LLC",
|
||||||
locale: "en-US",
|
locale: "en-US",
|
||||||
shipping_preference: Subscription.shipping_preferences.NO_SHIPPING,
|
shipping_preference: Subscription.shipping_preferences.NO_SHIPPING,
|
||||||
user_action: Subscription.actions.SUBSCRIBE_NOW,
|
user_action: Subscription.actions.SUBSCRIBE_NOW,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user