Payments/
Payment Gateways API/
Configure Stripe

Configure Stripe

Use the /gateways/stripe endpoint to configure Stripe.

PUT Update Stripe Settings

https://api.moltin.com/v2/gateways/stripe

Parameters

AttributeTypeDescription
loginstringYour live or test Stripe secret key.
typestringThe type of the resource. You must use gateway.
namestringThe display name of the gateway.
slugstringA unique slug for this gateway.
enabledbooleanSpecifies whether the gateway is enabled. The options are true or false.

Headers

NameRequiredTypeDescription
AuthorizationRequiredstringThe Bearer token required to get access to the API.

Body

NameRequiredTypeDescription
loginOptionalstringStripe test or live secret key.
enabledOptionalbooleantrue, false

Object example

{
  "data": {
    "enabled": true,
    "login": "xxx",
    "name": "Stripe",
    "slug": "stripe",
    "type": "gateway"
  }
}

Request Example

curl -X PUT https://api.moltin.com/v2/gateways/stripe \
     -H "Authorization: Bearer XXX" \
     -H "Content-Type: application/json" \
     -d $'{
       "data": {
         "enabled": true,
         "login": "xxx"
       }
     }'

Response Example

200 OK

{
  "data": {
    "enabled": true,
    "login": "xxx",
    "name": "Stripe",
    "slug": "stripe",
    "type": "gateway"
  }
}

Was this helpful?

Previous
Configure PayPal Express Checkout

Learn

Docs