Integration Overview

Integrating VdsPay with an existing website is easy and can be achieved with simple steps.

At a high level you want to achieve the following:

  • POST transaction details to Obtain Authorization URL
  • Calculate a request hash to ensure transaction integrity
  • Provide a URL which VdsPay would post back the authorization response
  • Query the transaction details directly from VdsPay to ensure the actual transaction amount was approved

The only requirement is to POST transaction data to the VdsPay server via JSON API. The section below describes how to create this POST with cURL.

Heads up!

You can now use the demo merchant details provided here to start testing your code and integration immediately without completing the sign up process.

Generating Authorization (using cURL JSON API POST)

curl \
-H "Authorization: Merchant HASH_KEY" \
-H "Content-Type: application/json" \
-d '{"transaction":{"accountNo":"0688258274","memo":"Payment For 1 Book","reference":"029882","amount":"100","currency":"USD","type":"sale","return_url":"","notify_url":"","customer":{"name":"Martin Luther","email":"","phone":"+448002566955"}}}' \

To calculate the HASH_KEY, its the sha512 hasing of accountNo, reference, amount and API Key. Your Merchant API Key will be issued to you.

Result Format

  "status": true,
  "message": "Authorization URL created",
  "data": {
    "authorization_url": "",
    "access_code": "0peioxfhpn"