Testing Recurring Payments

Self-Managed Recurring Payments: Card 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.

    Scenarios for testing tokenization and charging payments

    In these scenarios you tokenize the card and charge payments, either successfully or unsuccessfully.

    When you use one of these magic values, the payment will go through the following flow:
     Initiated > ProcessedGuaranteed

    If you want to move a payment to Delivered, see "Scenarios for testing payment status notifications".

    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

    Scenarios for testing payment status notifications

    In these scenarios you tokenize the card and charge a payment. The payment will be charged successfully and is then automatically moved through different payment statuses depending on the magic value.

    You'll get a notification for each status change, see Payment Status Notifications for more details about payment statuses and the notifications you can receive for them.

    Scenario First Name Last Name

    The payment will go from initiated to processed to guaranteed to delivered within a few seconds.

    PAYMENT DELIVERED

     

  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 an payment method token and an mandate ID in the response.

     

  10. Create and charge a payment with the payment method token and mandate ID you received.

    This request requires the recipient and its exact configuration (fields, items, etc.).

     

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

    If you tested tokenization and charging payments:

    If you chose a success scenario:

    Initiated

    Processed

    Guaranteed

    If you chose a fail scenario:

    Initiated

    Cancelled

    If you tested payment status notifications:

    Payment delivered

    Initiated

    Processed

    Guaranteed

    Delivered

Self-Managed Recurring Payments: Direct Debit 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.

    Scenarios for testing tokenization and charging payments

    In these scenarios you tokenize the bank account and charge payments, either successfully or unsuccessfully.

    When you use one of these magic values, the payment will go through the following flow:
     Initiated > ProcessedGuaranteed

    If you want to move a payment to Delivered , use the magic values in the table "Scenarios for testing payment status notifications".

    Scenario First Name Last Name

    Payment fail.

    The bank account will be tokenized but charging a payment will fail.

    DIRECT DEBIT

    FAIL

    Connectivity fail.

    The bank account will not be tokenized due to a connectivity error (either to Flywire or to the bank).

    DIRECT DEBIT

    CONNECTIVITY ERROR

    "Happy path", meaning not an error scenario.

    The bank account will be tokenized and payments that use this bank account will be successful.

    DIRECT DEBIT

    SUCCESS

    Scenarios for testing payment status notifications

    In these scenarios you tokenize the bank account and charge a payment. The payment will be charged successfully and is then automatically moved through different payment statuses depending on the magic value.

    You'll get a notification for each status change, see Payment Status Notifications for more details about payment statuses and the notifications you can receive for them.

    Scenario First Name Last Name

    The payment will go from initiated to processed to guaranteed within a few seconds.

    PAYMENT GUARANTEED

    The payment will go from initiated to processed to guaranteed to delivered within a few seconds.

    PAYMENT DELIVERED

     

  6. Enter demo bank accounts, depending on the scheme your using:

    For SEPA direct debit (for all scenarios)

    Country

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

    IBAN

    ES7921000813610123456789

    For BACS direct debit (for all scenarios)

    Country

    United Kingdom

    Sort Code

    60-00-01

    Account Number

    00000019

    For EFT Canada direct debit (for all scenarios)

    Connect to the test bank account via Plaid with the following credentials. You can pick any bank you like at the "Pick your bank" screen, and any bank account at the "Pick your account" screen.

    Username

    user_good

    Password

    pass_good

     

  7. Send the form.

     

  8. The next steps depend on the scenario you want to test:

    • If you chose the "connectivity fail" scenario, you'll see "Transaction failed" in the UI with a hint that connectivity issues occurred. The test scenario ends with that.

    • If you chose the "fail" or "success" scenario, you have to create a payment. Complete the following steps to do this.

     

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

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

     

  10. Confirm the Checkout Session.

    You'll receive an payment method token and an mandate ID in the response.

     

  11. Create and charge a payment with the payment method token and mandate ID you received.

    This request requires the recipient and its exact configuration (fields, items, etc.).

     

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

    If you tested tokenization and charging payments:

    If you chose a success scenario:

    Initiated

    Processed

    Guaranteed

    If you chose a fail scenario:

    Initiated

    Cancelled

    If you tested payment status notifications:

    Payment guaranteed

    Initiated

    Processed

    Guaranteed

    Payment delivered

    Initiated

    Processed

    Guaranteed

    Delivered

 

Flywire-managed Recurring Payments: Card 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.

    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:

    In Progress

    For the first payment:

    If you chose a success scenario:

    Initiated

    Processed

    Guaranteed

    If you chose a fail scenario:

    Initiated

    Cancelled