Integration methods

Overview

OnlinePay provides multiple integration methods to support different checkout experiences, technical requirements, and PCI DSS compliance obligations.

When choosing an integration method, consider the following:

  • The level of checkout customisation you require.
  • Your PCI DSS compliance responsibilities.
  • The development effort involved.
  • Whether customers should remain on your website while making a payment.
Integration methodDescriptionPCI compliance
Hosted Payments Page (HPP)Redirect customers to a secure OnlinePay-hosted payment page to complete payment.SAQ A
iFrameEmbed an OnlinePay-hosted payment form within your website.SAQ A
Pay by LinkGenerate payment links that can be sent to customers manually or created using an API.SAQ A
Server-to-Server with Verifone.jsCapture and encrypt cardholder data within the customer's browser using Verifone.js before creating transactions through the eCommerce API.SAQ A-EP
Server-to-Server API with merchant-hosted encryptionEncrypt card data server-side and perform API calls to create transactions directly through the eCommerce API.SAQ D
ℹ️

These integration methods are designed to support the corresponding PCI DSS assessment level typically associated with that integration model. This does not remove the need for you to comply with all other applicable PCI DSS requirements or account for other components of your payment environment.

Choosing the right integration

Hosted Payments Page (HPP)

Hosted Payments Page redirects your customer from your website to a secure OnlinePay-hosted payment page to complete their payment.

After the payment is completed, the customer is returned to your website.

Best for the following scenarios:

  • Rapid implementation.
  • Minimal PCI DSS scope.
  • Businesses that do not need to host the payment experience within their website.

iFrame

iFrame allows you to embed an OnlinePay-hosted payment form within your website.

The customer can complete their payment without being redirected to a separate payment page, while the payment form itself remains hosted by OnlinePay.

Best for the following scenarios:

  • Embedded checkout experiences.
  • Maintaining the customer journey within your website.
  • Reducing PCI DSS responsibilities by using OnlinePay-hosted payment fields.

Pay by Link

Pay by Link allows you to create a payment link and send it directly to your customer.

Payment links can be created manually or generated through an API, allowing them to be incorporated into your existing payment and customer communication processes.

Best for the following scenarios:

  • Collecting payments without building an online checkout.
  • Sending payment requests directly to customers.
  • Invoice and other remote payment workflows.

Verifone.js

Verifone.js provides a middle-ground integration option between fully hosted payment experiences and direct Server-to-Server API integrations.

It allows you to build and control your checkout experience while using Verifone.js to capture and encrypt cardholder data within the customer's browser. The encrypted payment data can then be used to create transactions through the eCommerce API.

This reduces your exposure to raw cardholder data compared with a Server-to-Server integration while providing greater control over the checkout experience than a fully hosted integration.

Best for the following scenarios:

  • Customised checkout experiences.
  • Merchants that want greater control over their payment user experience.
  • Reducing PCI DSS scope compared with handling cardholder data within merchant-controlled systems.

See Take encrypted server-to-server 3D Secure payments for more information.

Server-to-Server API

Server-to-Server integration provides greater control over the payment experience and transaction workflow by allowing your systems to communicate directly with the OnlinePay eCommerce API.

With this integration method, payment information is captured and encrypted within your environment before being sent to OnlinePay. Because merchant-controlled systems are involved in handling payment information, Server-to-Server integrations have greater PCI DSS compliance requirements.

Best for the following scenarios:

  • Complete control over the checkout experience.
  • Complex payment and transaction workflows.
  • Integrations requiring direct Server-to-Server API communication.

Working with the OnlinePay APIs

If your chosen integration uses OnlinePay APIs, you can use an API client such as Postman or Insomnia to build and test requests and manage environment variables.

Alternatively, you can make cURL requests directly from the command line or use the API Reference documentation to explore available endpoints and requests.


Did this page help you?

Terms and conditions Website requirements Other fees and charges

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.

Visa is a registered trademark of Visa International Service Association. Mastercard® is a registered trademark of Mastercard International Incorporated. American Express® is a registered trademark of American Express. UnionPay is a trademark of UnionPay International Co. Ltd.
Apple, the Apple logo, Apple Pay, Apple Watch and iPhone are trademarks of Apple Inc., registered in the U.S. and other countries. App Store is a service mark of Apple Inc. Google Pay™ is a trademark of Google LLC.
Bluetooth® is a registered trademark owned by Bluetooth SIG, Inc. and use of the mark by Westpac is under license.

© Westpac Banking Corporation ABN 33 007 457 141 AFSL and Australian credit licence 233714.