image Testing 529 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/

Testing Notifications for 529 Payments

1. Choose the recipient for the test payment.

2. Get an offer for the test payment.

3. Create an order with magic values.

1. Use magic values as the payer’s first name to create a test scenario:

Scenario first_name

Guaranteed

Flywire has received the funds.

SANDBOX_TO_GUARANTEED_STATUS

Delivered

Flywire has received the funds and processed the payment.

 

SANDBOX_TO_DELIVERED_STATUS

Cancelled

The payment has been cancelled.

SANDBOX_TO_CANCEL_STATUS

2. Add a notifications url.

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

curl https://api-platform-sandbox.flywire.com/payments/v1/orders
  -X POST
  -H "Content-Type: application/json"
  -H "X-Authentication-Key: {api_key}"
  -d '{
 	"payer": {
		"first_name": "YOUR MAGIC VALUE",
...
    }, 
..
	"notifications_url": "http://your-notifications-url.com",
}

4. Create the test payment.

5. Check the 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 Processed

image Guaranteed

image Delivered

This is the end of this scenario.

Within the next 10 seconds:

image Initiated

image Cancelled

This is the end of this scenario.