Update Authorize.net Gateway
PUT/v2/gateways/authorize_net
Use this endpoint to configure Authorize.net.
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
- application/json
Body
data object
Represents Authorize.net API Login ID.
Indicates Authorize.net Transaction Key.
Specifies a unique slug for this gateway.
Specifies whether the gateway is enabled or disabled. Set true
to enable the gateway and false
to disable the gateway. Default is false
.
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
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
data object
Specifies whether the gateway is enabled or disabled. Set true
to enable the gateway and false
to disable the gateway. Default is false
.
Represents your login ID.
Represents the name of the gateway.
Specifies the type of object being returned.
Specifies your password.
Specifies the slug of the gateway.
Specifies whether the test mode is enabled. Set true
to enable test mode and false
to disable the test mode. Default is false
.
{
"data": {
"enabled": true,
"login": "string",
"name": "{gatewayName}",
"type": "gateway",
"password": "authorize-net-transaction-key",
"signature": "string",
"slug": "{gatewaySlug}",
"test": false
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
[
null
]
{
"errors": {
"status": 401,
"title": "Unauthorized"
}
}