Testing 529 Payments

Testing Notifications for 529 Payments

Remember to use the Sandbox environment for all requests.

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:

Initiated

Processed

Guaranteed

This is the end of this scenario.

Within the next 1 minute:

Initiated

Processed

Guaranteed

Delivered

This is the end of this scenario.

Within the next 10 seconds:

Initiated

Cancelled

This is the end of this scenario.