Testing Pre-Authorization Payments

1. Choose the recipient for the test payment.

2. Create a Checkout Session.

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

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

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.

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

Scenario First Name Last Name

3DS will be triggered before the payment will be created.

The payment will stay in initiated until captured.

RECURRING CARD AUTH

3DS will not be triggered and the payment will be immediately created.

The payment will stay in initiated until captured.

RECURRING CARD APPROVED

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.

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.

You'll receive the payment reference in the response.

10. Check the notifications.

The payment is now created according to your scenario. You'll receive the following notifications:

Initiated

Authorized (immediately after initiated)