Skip to main content

Update PayPal Express Checkout

PUT 

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

Use this endpoint to configure PayPal Express Checkout.

note

To learn more about PayPal Express Checkout and check whether it will work for you, contact your sales or customer success team.

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.

    payer_idstringrequired

    Specifies the merchant account ID. The ID is displayed in the PayPal account details of the merchant.

    testboolean

    Specifies whether the test mode is enabled. Set true to enable test mode and false to disable the test mode. Default is false.

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
    payer_idstring

    Specifies the merchant account ID. The ID is displayed in the PayPal account details of the merchant.

    Example: {{merchant account id}}
    namestring

    Specifies the name of the gateway.

    Example: PayPal Express Checkout
    testboolean

    Specifies whether the test mode is enabled. Set true to enable test mode and false to disable the test mode. Default is false.

    Example: true
    slugstring

    Represents the slug of the gateway.

    Example: paypal_express_checkout
    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/paypal_express_checkout");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"data\": {\n \"enabled\": true,\n \"payer_id\": \"string\",\n \"test\": true\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,
    "payer_id": "string",
    "test": true
  }
}
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.