Update Authorize.net Gateway
PUThttps://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
- application/json
Body
data object
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
data object
{
"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
detail string
status string
title string
[
null
]
{
"errors": {
"status": 401,
"title": "Unauthorized"
}
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PUT 'https://useast.api.elasticpath.com/v2/gateways/authorize_net' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"data": {
"login": "string",
"password": "string",
"slug": "string",
"enabled": true,
"test": true
}
}'
ResponseClear