Basic Authentication

To access the ANYpay Gateway, if not using a Public API key (detailed further in this documentation), a basic authentication authorization header is required for each API request.

Basic authentication is a authentication scheme built into the HTTP protocol. The client sends HTTP requests with the Authorization header that contains the word Basic word followed by a space and a base64-encoded string username:password

The format of the authorization header should be as follows:
"Basic username:password" with the username and password being base 64 encoded.

Once encoded it should look similar (but not exactly the same) to the below example:
"Authorization: Basic VDRSRDE2UHFTYjZiSmNRTswiRHEwTkczcTNFa1ZTbGq1"

A 401 “Unauthorized” response will be returned if the username or password is incorrect.