Skip to main content

Update Authorize.net Gateway

PUT 

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

Use this endpoint to configure Authorize.net.

note

The credentials used for a test account may differ from those used for a live account. When configuring the payment gateway with your credentials and setting test to true, the system allows you to test various Authorize.net payment interactions to ensure everything works as expected. Once you are ready to go live, update test as false to direct requests to the live endpoints instead of the test account. Additionally, ensure that you switch to the credentials for the live account when making this change. To access your sandbox environment, see Authorize.net Sandbox account.

Request

Body

    data object
    loginstringrequired

    Represents Authorize.net API Login ID.

    passwordstringrequired

    Indicates Authorize.net Transaction Key.

    slugstring

    Specifies a unique slug for this gateway.

    enabledboolean

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

    testboolean

    Specifies whether the test account is enabled or disabled. Set true to enable the test account and false to disable the test account. 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
    loginstring

    Represents your login ID.

    namestring

    Represents the name of the gateway.

    Example: {gatewayName}
    typestring

    Specifies the type of object being returned.

    Example: gateway
    passwordstring

    Indicates Authorize.net Transaction Key.

    Example: authorize-net-transaction-key
    signaturestring
    slugstring

    Specifies the slug of the gateway.

    Example: {gatewaySlug}
    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: false
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://useast.api.elasticpath.com/v2/gateways/authorize_net");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"data\": {\n \"login\": \"string\",\n \"password\": \"string\",\n \"slug\": \"string\",\n \"enabled\": true,\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": {
    "login": "string",
    "password": "string",
    "slug": "string",
    "enabled": true,
    "test": true
  }
}
ResponseClear

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