Skip to main content

Update Stripe Payment Intents Gateway

PUT 

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

Use this endpoint to configure Stripe Payment Intents.

Request

Body

    data object
    enabledboolean

    Specifies whether the gateway is enabled or disabled. Set true to enable the gateway and false to disable the gateway. Default is false.

    loginstringrequired

    Represents Stripe test or live secret key.

Responses

OK

Schema
    data object
    enabledboolean

    Specifies whether the gateway is enabled or disabled. Set true to enable the gateway and false to disable the gateway. Default is false.

    Example: true
    loginstring

    Specifies the Stripe secret key for your account that is in live or test mode.

    Example: {{stripeLoginToken}}
    namestring

    Specifies the name of the gateway.

    Example: Stripe Payment Intents
    slugstring

    Represents the slug of the gateway.

    Example: stripe_payment_intents
    typestring

    Specifies the type of object being returned.

    Example: gateway
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://useast.api.elasticpath.com/v2/gateways/stripe_payment_intents");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"data\": {\n \"enabled\": true,\n \"login\": \"string\"\n }\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://useast.api.elasticpath.com
Body
{
  "data": {
    "enabled": true,
    "login": "string"
  }
}
ResponseClear

Click the Send API Request button above and see the response here!

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.