Use Case: One Off Payments

What are One Off Payments?

A One Off Payment is a single payment made once. For One Off Payments, no card or bank account details are stored (unlike recurring payments, where card or bank account information is stored for future payments).

image

A One Off Payment with Pay-By-Link means the payer gets directed to your PayEx portal to complete the payment. There they can choose their preferred payment method for this single payment.

 

Step-by-Step Guide

  1. Build the link with your preferred method:

  2. Give the link to your payer, for example via email or by displaying it on your website.

With Checkout

image

A One Off Payment with Checkout means the payer stays on your website to complete the payment. There they can choose their preferred payment method for this single payment.

This integration requires imageFlywire API credentials and the ability to make API requests for creating and confirming Checkout Sessions.

Step-by-Step Guide

  1. In your frontend: Implement the Checkout Experience form into your website.

    See Implementing the Checkout Experience.

  2. In your backend: Create a One Off Checkout Session.

    For details about the request see Creating a Checkout Session.

    The response contains the hosted-form-URL and the session ID. It depends on your implementation which one you use to display the Checkout Experience form.

  3. In your frontend: Display the form and let the payer fill it out.

    For details about the form see Checkout Experience - One off.

  4. In your backend: Confirm the Checkout Session after your payer filled out the form.

    You'll receive the confirm URL after the form is filled out. Use this URL to confirm the session.

    The response after confirming contains details about the payment.

With Flywire Elements

image

A One Off payment with Flywire Elements means the payer stays on your website to complete the payment. With elements, you decide on the payment method for the payer by using a specific element.

Available payment methods for One Off payments with elements are:

  • imageCard

This integration requires imageFlywire API credentials and the ability to make API requests for creating and confirming Checkout Sessions.

Step-by-Step Guide

  1. In your frontend:

    Implement a trigger on your website that sends an http request to your backend.

    The trigger could be a button like "Make Payment". The http request tells your backend to send a secure request to the Flywire API to create a Checkout Session.

  2. In your backend: 

    Create a Checkout Session via the API.

    From your backend, you can securely create a Checkout Session. You need to know which recipient you want to use for this request.

    The response contains the hosted-form-URL and the session ID. It depends on your implementation which one you use to display the form.

  3. In your frontend: Display the form and let the payer fill it out.

    For details about the form see Payment Element.

  4. In your backend: Confirm the Checkout Session after your payer filled out the form.

    You'll receive the confirm URL after the form is filled out. Use this URL to confirm the session.

    The response after confirming contains details about the payment.