Secure Payments API – Create VersaPay Processor

General

This article explains how to create a VersaPay payment processor via the API. For information on processing payments, take a look at our Processing a Payment Through VersaPay article.

How To

To create a VersaPay processor, send a POST request to the following endpoint:

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

Your payload will need to include the following information:

{
"versa": {
"name": "Sample",
"auto_reversal": true,
"bypass": true,
"demo_mode": true,
"key": "YOUR VERSAPAY KEY",
"token": "YOUR VERSAPAY TOKEN"
}
}

Here is a sample cURL payload:

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'authorization: YOUR AUTHORIZATION' --header 'secret: YOUR SECRET' -d '{ \
"versa": { \
"name": "Sample", \
"auto_reversal": true, \
"bypass": true, \
"demo_mode": true, \
"key": "YOUR VERSAPAY KEY", \
"token": "YOUR VERSAPAY TOKEN" \
} \
}' 'https://securepayments.loanpro.io/api/processors/versa'

A successful request will provide the processor ID in the response, which will be used when processing a Versapay transaction:

{
"id": 2996
}


How did we do?


Powered by HelpDocs (opens in a new tab)