You can configure Authorize.net programmatically using the /gateways/authorize_net
endpoint.
The Authorize.net Gateway Object
Attribute | Type | Description |
login | string | Your live or test API Login ID. |
password | string | Your live or test Transaction Key. |
type | string | This is always gateway |
name | string | The display name of the gateway. |
slug | string | A unique slug for this gateway. |
enabled | boolean | true or false -- enable the gateway. |
test | boolean | true or false -- enable test mode. |
Sample Object
{
"data": {
"enabled": true,
"login": "xxx",
"password": "xxx",
"name": "Stripe",
"slug": "stripe",
"type": "gateway",
"test": false
}
}
Update Stripe settings
PUT
Update Authorize.net Settings
https://api.moltin.com/v2/gateways/authorize_net
Parameters
Headers
Name | Required | Type | Description |
Authorization | Required | string | The Bearer token required to get access to the API. |
Body
Name | Required | Type | Description |
login | Optional | string | Authorize.net API Login ID. |
password | Optional | string | Authorize.net Transaction Key. |
enabled | Optional | string | true , false |
test | Optional | string | true , false |
Request Example
curl -X PUT https://api.moltin.com/v2/gateways/authorize_net \
-H "Authorization: Bearer XXX" \
-H "Content-Type: application/json" \
-d $'{
"data": {
"enabled": true,
"login": "xxx",
"password": "xxx",
"test": true
}
}'
Response Example
200 OK
Last updated on 10/18/2022