Concepts
External payment gateways allow developers to integrate any payment gateway with Bold Checkout.
External payment gateways
An external payment gateway is any payment gateway not already supported by Bold. Stores can replace their default Bold Checkout payment gateway with an external payment gateway or add an external payment gateway in addition to their default gateway.
To communicate with Bold, the external payment gateway must send and receive data with specific endpoints. Bold calls these endpoints the external payment gateway connector. To implement a connector, use the Integrate an External Payment Gateway guide.
External payment gateway information flow
When implementing an external payment gateway, a store provides Bold with information required to display the external payment gateway's iframe
. This information includes:
- an
iframe_url
, the store's external payment gateway URL to place in a frontendiframe
, e.g.www.example.com/gateway
.
When an order is initialized using the Initialize Order endpoint, the iframe
information is displayed in the storefront's checkout page. Once a customer enters payment information in the iframe
, the following occurs:
- Checkout sends the payment information to the external payment gateway
iframe
. - The external payment gateway returns a token associating the customer with the transaction.
- The storefront sends the token and payment information to the Checkout Frontend API Create Payment endpoint.
- Checkout sends this information to the external payment gateway's Retain endpoint.
- The storefront and the external payment gateway complete the order, using Checkout Backend API and External Payment Gateway API endpoints.
Frontend information flow
In the information flow above, the first step is:
- Checkout sends the payment information to the external payment gateway
iframe
.
The following is a more detailed explanation of how the iframe
is created:
- The Checkout Frontend API sends application state data to the Checkout frontend display.
- Checkout completes the following tasks:
- Checks the application state data for information about external payment providers, such as
iframe_url
. - Renders the iframe based on the
location
field. - Interacts with the
iframe
via the postMessage() API.
- Checks the application state data for information about external payment providers, such as
For more information on the postMessage() API actions and events, see the External Payment Gateway Actions and Events page.