Testing Flywire-Managed Recurring Payments

Testing requires you to make API calls in the Sandbox environment:

Make sure you have credentials for the API Sandbox.
Remember to use the Sandbox environment for all tests:
https://api-platform-sandbox.flywire.com/

imageCard Scenarios

  1. Decide which recipient you want to use.

     

  2. Create a Checkout Session.

    You'll receive a URL for the UI form in the API response.

    Since you are testing status notifications, make sure to provide a notifications URL where you can receive the notifications via callbacks.

     

  3. Open the URL for the form in your browser.

     

  4. In your browser, add the event listener code to the page.

     

  5. Enter the magic values for the scenario you want to test in the fields First Name and Last Name.

    All other fields except First Name and Last Name do not affect the test scenario, you can fill them with any data you want.

    Scenario First Name Last Name

    "Happy path", meaning no errors. 3DS will be triggered.

    The card will be tokenized, and a payment that uses this card will successfully be charged.

    RECURRING CARD AUTH

    "Happy path", meaning no errors. 3DS will not be triggered.

    The card will be tokenized, and a payment that uses this card will successfully be charged.

    RECURRING CARD APPROVED

    Credit card is expired.

    The card will be tokenized, but payments that try to use this card will not be charged successfully.

    RECURRING CARD EXPIRED

    Credit card is declined because of fraud suspicion.

    The card will be tokenized, but payments that try to use this card will not be charged sucessfully.

    RECURRING CARD FRAUD

    Credit card doesn't have enough balance and can't be charged for this payment.

    The card will be tokenized, but payments that try to use this card will not be charged sucessfully.

    RECURRING CARD NOT ENOUGH BALANCE

     

  6. Enter a demo credit card details into the payment information fields.

    Brand Number Expiration date CVV
    Visa 4111 1111 1111 1111 03/30 737
    Mastercard 5454 5454 5454 5454 03/30 737
    Amex 3700 0000 0000 002 03/30 7373

     

  7. Send the form.

    image

    If you used a scenario that triggers 3DS authentication, you now see the Flywire 3DS authentication simulator. Enter the word password in the password field and click on continue to complete the authentication.

     

  8. Check the console in your browser's development tools.

    The event listener will return the URL for confirming the Checkout Session.

     

  9. Confirm the Checkout Session.

     

  10. You'll receive the following notifications via callbacks:

    For the installment plan:

    For all scenarios:

    image In Progress

    For the first payment:

    If you chose a success scenario:

    image Initiated

    image Processed

    image Guaranteed

    If you chose a fail scenario:

    image Initiated

    image Cancelled