Authentication and environment variables
Overview
This section provides information about how to create an API key, set up your environment variables, and use them in your API requests, as well as information about the authentication method used by the OnlinePay API.
Authentication
OnlinePay's API uses the Basic authentication method to secure REST API requests. Basic authentication sends HTTPS requests with an Authorization header containing Base64-encoded strings as a username and password.
These encoded keys are passed in the API request header in the following format:
Authorization: Basic dXNlcjEyMzphYmM0NTY=
Where dXNlcjEyMzphYmM0NTY= is the Base64-encoded string of your User ID and API Key in the following format: user-uid:api-key.
Replace the
{user-uid}and{api-key}values with your own keys.
Environment variables
| Variable | |
|---|---|
| Base URL | https://au.gsc.verifone.cloud/ |
| API Key | Create an API Key |
| User ID | Retrieve your User ID |
| Payment Provider Contracts | Payment Provider Contracts |
| 3DS Contract | 3DS Contract |
| Entity ID | Entity ID |
Updated 17 days ago