Search
⌃K
Links

API (Secure Embed)

This page shows how to form a Checkout widget based on a cashier key and a cashier token.
API process diagram
In order to access the checkout: 1) Checkout needs to be activated. 2) At least one PSP needs to be connected via BridgerPay. 3) At least one PSP needs to be added to the Router.

Required Steps:

  1. 1.
    Get authorized as a merchant.
  2. 2.
    Create a server session to generate a cashier token.
  3. 3.
    Create a Checkout session by using cashierkey and cashier_token to load the Checkout on your website.

Checkout Session

Insert a code in any HTML-supporting application (e.g., a web browser) to show the Cashier widget to a customer. At this step, the server-side Cashier scheme can be integrated as a script embedded in your website or as an iframe placed in an arbitrary web resource.
Mind the case style and syntax.
The examples of SCRIPT and IFRAME integration are shown below:
Script
IFrame
<!DOCTYPE html>
<html>
<body>
<script src="https://checkout.bridgerpay.com/v2/loader"
data-cashier-key="{{CASHIER_KEY}}"
data-cashier-token="{{CASHIER_TOKEN}}"
>
</script>
</body>
</html>
This implementation requires redirection to be handled from your end using events.
<!DOCTYPE html>
<html>
<body>
<iframe width=700px height=1000px src="https://checkout.bridgerpay.com/v2/?
cashierKey={{CASHIER_KEY}}&
cashierToken={{CASHIER_TOKEN}}"
>
</body>
</html>
An explanation of each parameter used can be found on this page.

Difference between Script and IFrame integration

Script Tag
iFrame Tag
REDIRECT
Auto Redirect
Needs manual implementation
TRUST
Trust source
No need to trust the source
SIZING
Automatic sizing and adjusting to the area where the solution is loaded
Sizing is set from implementation dev
BUTTON MODE
Supported
NOT supported
ANIMATION
Splash screen
Dot animation