Update Stripe Payment Intents Gateway
PUThttps://useast.api.elasticpath.com/v2/gateways/stripe_payment_intents
Use this endpoint to configure Stripe Payment Intents.
Request
- application/json
Body
data object
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (auto)
Schema
data object
{
"data": {
"enabled": true,
"login": "{{stripeLoginToken}}",
"name": "Stripe Payment Intents",
"slug": "stripe_payment_intents",
"type": "gateway"
}
}
Unauthorized
- application/json
- Schema
- Example (auto)
- Example
Schema
detailstring
statusstring
titlestring
[
null
]
{
"errors": {
"status": 401,
"title": "Unauthorized"
}
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
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());
ResponseClear