Checkout

The Checkout integration allows you to embed the Commercial Payment Experience into your own website.

With Checkout, your payers never leave your website:

  1. With the click of a button on your website the Commercial Payment Experience form opens for the payer.

  2. In the form, the payer can choose their preferred payment method and complete the payment.

  3. After the payment is completed and the form is closed, the payer either is returned to the original page or is redirected to a page you specified.

 

You can use Checkout for the following payment types:

https://your-website.com/
DEMO
Your Website

Confirm Your Booking

Review your trip details below and complete payment securely.

Luxury Trip Package
7-Day Stay · Five-Star Resort · Private Tours
4.700,00 €
Booking & Service Fee
One-time, includes 24/7 support
300,00 €
Total Due5.000,00 €

How to embed the Commercial Payment Experience via Checkout

This simplified html example shows you how to implement the Commercial Payment Experience in your website:

Script

Add the script that opens the Commercial Payment Experience to your page.

The script source is

https://checkout.flywire.com/flywire-payment.js

Button

Add a button (or other element or event) to trigger the Commercial Payment Experience form.

Event Handler

Add an event handler that defines what happens after the button is clicked.

Configuration

Set your portal specific payment configuration options. See List of Configuration Parameters for all parameters.

Render

Render the Commercial Payment Experience form with the specified configuration.

<!DOCTYPE html>
<html>
  <head>
    <!-- Include the flywire.js script -->
    <script src="https://checkout.flywire.com/flywire-payment.js"></script>
  </head>
  <body>
    <!-- Add a button element -->
    <button onclick="pay()">
      Make Payment
    </button>

    <script>
      // Add an event handler
      function pay() {
        var config = {
          // See sample configuration options
        };

        var modal = window.FlywirePayment.initiate(config);
        modal.render();
      }
    </script>
  </body>
</html>