Configure PayPal Express Checkout
Use the /gateways/paypal_express_checkout
endpoint to configure PayPal Express Checkout.
To learn more about PayPal Express Checkout and check whether it will work for you, contact your sales or customer success team.
The PayPal Express Checkout Gateway Object
Attribute | Type | Description |
---|---|---|
type | string | Specifies the type of the resource. You must use gateway . |
name | string | Specifies the name of the gateway. |
slug | string | Specifies a unique slug for the gateway. |
payer_id | string | Specifies the merchant account ID. The ID is displayed in the PayPal account details of the merchant. |
enabled | boolean | Specify whether the gateway is enabled or disabled. Set true to enable the gateway and false to disable the gateway. |
test | boolean | Specifies whether the test mode is enabled. Set true to enable test mode and false to disable the test mode. |
Sample Object
{
"data": {
"type": "gateway",
"name": "PayPal Express Checkout",
"slug": "paypal_express_checkout",
"payer_id": "ABCxxxxxxxx",
"enabled": true,
"test": true
}
}
PUT
Update PayPal Express Checkout settings
https://api.moltin.com/v2/gateways/paypal_express_checkout
Parameters
Headers
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token required to get access to the API. |
Body
Name | Required | Type | Description |
---|---|---|---|
payer_id | Required | string | Specifies the merchant account ID. The ID is displayed in the PayPal account details of the merchant. |
enabled | Required | boolean | Specifies whether the gateway is enabled or disabled. Set true to enable the gateway and false to disable the gateway. |
test | Required | boolean | Specifies whether the test mode is enabled. Set true to enable test mode and false to disable the test mode. |
Request Example
curl -X PUT https://api.moltin.com/v2/gateways/paypal_express_checkout \
-H "Authorization: Bearer XXX" \
-H "Content-Type: application/json" \
-d $'{
"data": {
"payer_id": "ABCxxxxxxxx",
"enabled": true,
"test": true
}
}'
Response Example
200 OK
{
"data": {
"payer_id": "ABCxxxxxxxx",
"enabled": true,
"test": true
}
}