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 methodDescriptionPCI compliance
Hosted Payments Page (HPP)Full page redirect to OnlinePay serversSAQ A
iFrameRender a OnlinePay hosted form on your websiteSAQ A
Pay by LinkSend payment links to your customers manually or automate with an APISAQ A
Server-to-Server APIPerform API calls to capture customer payment information and place ordersSAQ 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 or Insomnia , 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

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 URLhttps://au.gsc.verifone.cloud/
API KeyCreate an API Key
User IDRetrieve your User ID
Payment Provider ContractsPayment Provider Contracts
3DS Contract3DS Contract
Entity IDEntity ID

Create an API key

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

  • Merchant Admin

  • Merchant External Partner

  • Merchant Supervisor

  • Merchant Cashier

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.

Retrieve your User ID

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

  1. Navigate to My Account in the OnlinePay dashboard.

  2. Copy the string in the URL following /users/.

  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.

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.

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.

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.


St. George BankSA Bank of Melbourne

This information is a general statement for information purposes only and should only be used as a guide. While all care has been taken in preparation of this document, no member of the Westpac Group, nor any of their employees or directors gives any warranty of accuracy or reliability nor accepts any liability in any other way, including by reason of negligence for any errors or omissions contained herein, to the extent permitted by law. Unless otherwise specified, the products and services described are available only in Australia.

© St.George, Bank of Melbourne and BankSA – Divisions of Westpac Banking Corporation ABN 33 007 457 141 AFSL and Australian credit licence 233714.