API Authentication
This document will show you how to authorize API calls
With Paychant, you can authorize your API calls by including your auth token in the Authorization header of every request you make.
Token should be kept confidential and only stored on your own server. Your account’s API auth token can perform any Payment Gateway API request to Paychant without restriction.
Provide generated Token to HTTP Authorization Header.
curl -v -H "Authorization: Token YOUR_API_AUTH_TOKEN" ""
$auth_token = 'YOUR_API_AUTH_TOKEN';
$headers = array();
$headers[] = 'Authorization: Token ' . $auth_token;
$curl = curl_init();
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
All Live API requests must be made over HTTPS. Paychant Gateway API requests made without authorization will fail with the status code 401: Unauthorized
Copy link