Configure Stripe

You can configure Stripe programatically using the /gateways/stripe endpoint.

The Stripe gateway object

Attributes
Sample Object

Attribute

Type

Description

login

string

Your live or test Stripe secret key

type

string

This will always be gateway

name

string

The display name of the gateway

slug

string

A unique slug for this gateway

enabled

boolean

true or false that will enable the gateway

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

put
Update Stripe settings

https://api.moltin.com/v2/gateways/stripe
Request
Response
Headers
Authorization
required
string
The Bearer token to grant access to the API
Body Parameters
login
optional
string
Stripe test or live secret key
enabled
optional
boolean
true, false
200: OK
{
"data": {
"enabled": true,
"login": "xxx",
"name": "Stripe",
"slug": "stripe",
"type": "gateway"
}
}
cURL
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"
}
}'