Composable Frontend 2.0 Learn more 

  • Payments/
    Payment Gateways API/
    Configure Stripe

    Configure Stripe

    PUT Update Stripe Settings

    https://useast.api.elasticpath.com/v2/gateways/stripe
    

    Use the /gateways/stripe endpoint to configure Stripe.

    Parameters

    Headers

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

    Body

    NameRequiredTypeDescription
    loginRequiredstringRepresents Stripe test or live secret key.
    enabledOptionalbooleanSpecifies whether the gateway is enabled or disabled. Set true to enable the gateway and false to disable the gateway. Default is false.

    Request Example

    curl -X PUT https://useast.api.elasticpath.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"
      }
    }
    
    Previous
    Configure PayPal Express Checkout