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 method | Description | PCI compliance |
|---|---|---|
| Hosted Payments Page (HPP) | Redirect customers to a secure OnlinePay-hosted payment page to complete payment. | SAQ A |
| iFrame | Embed an OnlinePay-hosted payment form within your website. | SAQ A |
| Pay by Link | Generate payment links that can be sent to customers manually or created using an API. | SAQ A |
| Server-to-Server with Verifone.js | Capture 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 encryption | Encrypt 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.
Updated 12 days ago