mirror of
https://github.com/therootcompany/paypal-checkout.js.git
synced 2025-05-13 09:36:37 +00:00
bugfix: add missing subscription properties
This commit is contained in:
parent
3d18aa00de
commit
70da150599
@ -441,6 +441,7 @@ Subscription.payee_preferences = {
|
|||||||
IMMEDIATE_PAYMENT_REQUIRED: "IMMEDIATE_PAYMENT_REQUIRED",
|
IMMEDIATE_PAYMENT_REQUIRED: "IMMEDIATE_PAYMENT_REQUIRED",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// See https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_create
|
||||||
Subscription.createRequest = async function _createSubscription({
|
Subscription.createRequest = async function _createSubscription({
|
||||||
request_id,
|
request_id,
|
||||||
plan_id,
|
plan_id,
|
||||||
@ -449,6 +450,8 @@ Subscription.createRequest = async function _createSubscription({
|
|||||||
shipping_amount,
|
shipping_amount,
|
||||||
subscriber,
|
subscriber,
|
||||||
application_context,
|
application_context,
|
||||||
|
custom_id,
|
||||||
|
plan,
|
||||||
}) {
|
}) {
|
||||||
return await PayPal.request({
|
return await PayPal.request({
|
||||||
method: "POST",
|
method: "POST",
|
||||||
@ -496,6 +499,8 @@ Subscription.createRequest = async function _createSubscription({
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
application_context: application_context,
|
application_context: application_context,
|
||||||
|
custom_id: custom_id,
|
||||||
|
plan: plan,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then(must201or200)
|
.then(must201or200)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user