imageTesting One Off Payments

This page guides you through testing your integration - it guides you through creating payments and testing various behaviors. It does not cover all possible payment flows. For simulating payment flows and testing callbacks for each payment status, refer to Testing Payment Flows.

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/

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. Fill out the payer info fields in the One Off Payments form and click "next".

The fields do not affect the test scenario, you can fill them with any demo data.

6. Use the magic values for your chosen payment method.

The next steps depend on the chosen payment method. Which scenarios you can test also depends on the payment method:

First Name Last Name Will 3DS be triggered? Will the payment be successful? Statuses for the payment Scenario Description
MAGICVALUE AUTH

yes

yes

InitiatedProcessedGuaranteed

"Happy path" with 3DS

Use this scenario if you want to test 3DS behavior.
MAGICVALUE APPROVED

no

yes

InitiatedProcessedGuaranteed

"Happy path" without 3DS

Use this scenario if you want to skip the 3DS verification.

MAGICVALUE EXPIRED

no

no

InitiatedFailed

Card is expired

Use these scenarios if you want to test payments that fail.
MAGICVALUE FRAUD

no

no

InitiatedFailed

Card is declined

MAGICVALUE NOT ENOUGH BALANCE

no

no

InitiatedFailed

Card doesn't have enough balance

Use one of the demo credit cards for the credit card details:

The demo cards must be used together with cardholder name magic values.

Number Expiration date CVV Currency Issuing Country Type

Visa

4010 1000 0000 0016 03/30 737 EUR DE Debit
4988 4388 4000 0012 03/30 737 EUR ES Debit
4242 4201 0000 0017 03/30 737 GBP GB Credit
4761 3600 0000 0017 03/30 737 INR IN Debit
4111 1111 1111 1111 03/30 737 USD US Credit

Mastercard

2222 4000 1000 0016 03/30 737 CAD CA Credit
5163 6136 0000 0014 03/30 737 AUD AU Debit
5252 5202 0000 0017 03/30 737 JPY JP Debit
5454 5454 5454 5454 03/30 737 USD US Credit

American Express (Amex)

3700 0000 0000 002 03/30 7373 USD

US

Credit

After you selected this payment method, enter the following values:

Country

Spain
(The demo IBAN is a Spanish IBAN, which means you must choose Spain as a country.)

Account Holder Name

MAGICVALUE APPROVED

Email Any fake email address
IBAN

ES7921000813610123456789

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

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

Within the next 30 seconds:

image Initiated

image Processed

image Guaranteed

This is the end of this scenario.

Within the next 1 minute:

image Initiated

image Failed (immediately after initiated)

This is the end of this scenario.