Use Case: Flywire-Managed Recurring Payments

With Flywire-managed recurring payments, you use Flywire's pre-defined installment plans. You only have to configure the plan settings (for example the number of installments) in Flywire Dashboard, Flywire will take care of the rest.

Since Flywire knows your plan settings, payments get initiated automatically according to the schedule.

Flywire also manages all emails to your payers on your behalf - these are mandatory to inform them about the recurring payments.

You need access to Flywire Dashboard to define the settings for the plans. If you don't have access yet, contact your Relationship Manager.

Available payment methods:

  • Card

Walkthrough

In this scenario, your payer chose on your website what they want to pay for. Now you want to let your payer choose their installment plan and how they want to pay the recurring payments. At this point, you need to display the Flywire-Plans form.

  1. Define the settings for your installment plans in Flywire Dashboard.

    You need access to Flywire Dashboard to define the settings for the plans. If you don't have access yet, contact your Relationship Manager.

  2. 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.

  3. 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.

  4. Receive the URL for displaying the form.

    The response after creating Checkout Session will return a URL to you (as the value of the url parameter in the hosted_form object). This is the URL you need in order to display the UI form in an iframe on your website.

    When you are pre-filling the form, the response can contain warnings (in the warnings array) in case the pre-filling of any fields didn't pass the validation, see Field validation warnings after pre-filling a UI form for more details.

    You can decide which information from the response you want to filter out in your backend before passing the URL to your frontend.

  5. Display the form on your website.

    The form is where Flywire gathers the payer and payment information.

  6. Your payer now fills out the form and creates an installment plan.

    Your payer is asked to create an account or log into an existing one during the process in order to be able to manage the installment plan. After the payer completed the process, an installment plan is created.

  7. Receive the URL for confirming the Checkout Session.

    There are many ways for your backend to receive the confirm URL. One option is to directly send it from the event listener you implemented on your website to your backend.

  8. Confirm the Checkout Session via the API.

    After the payer filled out the form you need to confirm the session as a security measure.

  9. Receive the installment plan ID via the API.

    After you confirmed the session, you’ll receive the installment plan ID of the Flywire plan that has been created.