---
updatedAt: 2025-10-21T06:42:23.000Z
agentTools:
  siteIndex: https://merchants.stgeorge.com.au/llms.txt
  projectIndex: https://merchants.stgeorge.com.au/onlinepay/llms.txt
---

# Get started with the OnlinePay API

## Overview

OnlinePay allows you to accept payments using multiple methods. There are several integration methods to choose from depending on how you want to accept online payments:

| Integration method         | Description                                                                | PCI compliance |
| -------------------------- | -------------------------------------------------------------------------- | -------------- |
| Hosted Payments Page (HPP) | Full page redirect to OnlinePay servers                                    | SAQ A          |
| iFrame                     | Render a OnlinePay hosted form on your website                             | SAQ A          |
| Pay by Link                | Send payment links to your customers manually or automate with an API      | SAQ A          |
| Server-to-Server API       | Perform API calls to capture customer payment information and place orders | SAQ D          |

This chapter provides information about how to accept payments using server-to-server REST API calls to capture customer details, payment information, and place orders. REST API uses RESTful architecture, or Representational State Transfer, which allows you to exchange information reliably and securely through application programming interface (API) requests.

This section covers the information you need to know to interact with our APIs and start taking online payments.

Depending on your familiarity with using APIs, you may want to use an API client, such as [Postman](https://www.postman.com/downloads/)  or [Insomnia](https://insomnia.rest/download) , so that you can easily capture and store variables. Alternatively, you can make cURL requests directly from the command line or use our [API Reference documentation](https://merchants.stgeorge.com.au/onlinepay/reference/checkout)

## 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 {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](#create-an-api-key)                   |
| **User ID**                    | [Retrieve your User ID](#retrieve-your-user-id)           |
| **Payment Provider Contracts** | [Payment Provider Contracts](#payment-provider-contracts) |
| **3DS Contract**               | [3DS Contract](#3ds-contract)                             |
| **Entity ID**                  | [Entity ID](#entity-id)                                   |

<br />

### Create an API key

To create an API key, your OnlinePay account must have at least one of the following roles:

* Merchant Admin
* Merchant Supervisor

<Callout icon="⚠️" theme="warn">
  The Merchant Supervisor role is required to create and manage API keys for payment tools, such as Pay by Link, Virtual Terminal, and plugins.
</Callout>

Use the following procedure to create a new API key or copy one you've already created.

1. Log in to your OnlinePay dashboard.

2. Click your settings menu in the upper-right corner, then select **API Keys**.

3. Click **Create API key**.

4. Click **Copy public key** to copy the key to your clipboard.

5. Paste the API key into your preferred REST API client, such as Postman or Insomnia, or save it in a secure location for use when making requests using cURL.

   > ℹ️ Note
   >
   > When you close the API key window or click **Discard**, you will not be able to retrieve the key again.

You can have up to five API keys.

Do not share your API key or make it available to anyone else.

<Callout icon="⚠️" theme="warn">
  API keys automatically expire after 12 months. You will need to create a new API key and update your API requests to use the new key before the old key expires to avoid any disruption to your API integration.
</Callout>

<br />

### Retrieve your User ID

Do the following steps to retrieve your unique `user-uid`.

1. Navigate to **My Account** in the OnlinePay dashboard under your user profile icon in the top right corner.

   <Image border={false} src="https://files.readme.io/baf527ed76a99d914052be2ce664a676350db183204ad0858e750c4bcf5b937b-pw-my-account.png" />

2. Find your **User ID** string in your **General information** panel, then click the copy icon to copy the string to your device clipboard.

   <Image border={false} src="https://files.readme.io/e582bb967693f3e315d7a18122de3d438a775efa78e37cb4fd7f5f7ccff89ce8-varaibles-userid.png" />

3. Save the UUID value as a `userId` variable in your REST API client.

   Alternatively, you can pass the UUID in your request header if using cURL.

<br />

### Payment Provider Contracts

1. In your OnlinePay dashboard, navigate to **Administration > Account Setup > Payment (Provider) Contracts**.

2. Click the payment provider contract that you want to use for your API request.

3. Copy the **Payment Provider Contract ID** and save it to your preferred REST API client as an environment variable or save it in a secure location for use when making requests using cURL.

   <Image alt="The Payment Provider Contract ID in the OnlinePay dashboard" border={false} src="https://files.readme.io/9b493aa-OP-payment-contracts.png" />

4. <Image border={false} src="https://files.readme.io/9b493aa-OP-payment-contracts.png" />

### 3DS Contract

1. In your OnlinePay dashboard, navigate to **Administration > Advanced Settings > 3DS Contracts**.

2. Click the 3D Secure provider contract you want to use for your API request.

3. On the 3DS contract details page, copy the **3-D Secure Contract ID** and save it to your preferred REST API client as an environment variable or save it in a secure location for use when making requests using cURL.

<Image alt="The 3DS Contract ID in the OnlinePay dashboard" border={false} src="https://files.readme.io/3a42c5326af415d553fa0c8f38bd7adb39f875645c027f6b66e2b6cc7a436cbf-variables-3ds.png" />

### Entity ID

1. In your OnlinePay dashboard, navigate to **Administration > Account Setup > Organisation**.

2. Click the name of the organisation or site that you want to use for your API request.

3. On the organisation **General information** page, copy the **Organisation ID** and save it to your preferred REST API client as an environment variable or save it in a secure location for use when making requests using cURL.

<Image alt="The Organsiation ID on the organisation profile page in the OnlinePay dashboard." border={false} src="https://files.readme.io/2ca9063e002f4703d8c6640c5080a1d29bb1c5eb618f795a7059313222868b7f-variables-orgid.png" />

<br />