Secure Payments API – Create Authorize.net Processor

General

Authorize.net is a payment processor that processes credit card transactions.

This article explains how to create a new Authorize.net payment processor. To process a payment using an Authorize.net payment processor, take a look at our Processing ANET Transactions article.

How To

To create an ANET processor, send a POST request to the following URL:

POST  https://securepayments.loanpro.io/api/processors/anet

The body of the request will need to be set up similar to the following example:

{
"anet": {
"sandbox": true,
"test": true,
"name": "API ANET PROCESSOR",
"login": "example_login",
"key": "65432154983135498455123684"
}
}

Here is the same body example but written in cURL:

{
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'authorization: YOUR AUTH' --header 'secret: YOUR SECRET' -d '{ \
"anet": { \
"name": "API ANET PROCESSOR", \
"login": "example_login", \
"key": "65432154983135498455123684", \
"sandbox": true, \
"test": true \
} \
}' 'https://securepayments.loanpro.io/api/processors/anet'
}

A successful request will result in a 200 result with the following response:

{
"id": 1
}

Make sure to store this ID for later use. Each time you process a transaction, you will need to provide this ID to specify which processor you would like to use.


How did we do?


Powered by HelpDocs (opens in a new tab)