Skip to content

Latest commit

 

History

History
100 lines (83 loc) · 2.41 KB

configure-stripe-payment-intents.md

File metadata and controls

100 lines (83 loc) · 2.41 KB

Configure Stripe Payment Intents

You can configure Stripe Payment Intents programatically using the /gateways/stripe_payment_intents endpoint.

The Stripe Payment Intents gateway object

{% tabs %} {% tab title="Attributes" %}

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
{% endtab %}

{% tab title="Sample Object" %}

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

{% endtab %} {% endtabs %}

{% api-method method="put" host="https://api.moltin.com" path="/v2/gateways/stripe_payment_intents" %} {% api-method-summary %} Update Stripe Payment Intent settings {% endapi-method-summary %}

{% api-method-description %}

{% endapi-method-description %}

{% api-method-spec %} {% api-method-request %} {% api-method-path-parameters %} {% api-method-parameter name="login" type="string" required=false %} Stripe test or live secret key {% endapi-method-parameter %}

{% api-method-parameter name="enabled" type="string" required=false %} true, false {% endapi-method-parameter %} {% endapi-method-path-parameters %}

{% api-method-headers %} {% api-method-parameter name="Authorization" type="string" required=true %} The Bearer token to grant access to the API {% endapi-method-parameter %} {% endapi-method-headers %} {% endapi-method-request %}

{% api-method-response %} {% api-method-response-example httpCode=200 %} {% api-method-response-example-description %}

{% endapi-method-response-example-description %}

{
  "data": {
    "enabled": true,
    "login": "xxx",
    "name": "Stripe Payment Intents",
    "slug": "stripe_payment_intents",
    "type": "gateway"
  }
}

{% endapi-method-response-example %} {% endapi-method-response %} {% endapi-method-spec %} {% endapi-method %}

{% tabs %} {% tab title="cURL" %}

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

{% endtab %} {% endtabs %}