HomeGuidesReference
Log In
Guides

Test Cards

Simulate EBT and HSA/FSA transactions in your Forage integration with this complete list of test card numbers for sandbox validation and error handling.

Use this guide to simulate EBT and HSA/FSA transactions in the Forage sandbox environment. These test cards help developers verify transaction flows, validate error handling, and confirm integration behavior for both successful and failed scenarios.

EBT Test Cards

Forage SDKs include built-in EBT Card Number validation in both sandbox and production environments.

⚠️

Sandbox Use Only

These test cards are for sandbox use only. Do not use them in production.

Valid EBT Test Cards

Use any 16-, 18-, or 19-digit number starting with 9999 to simulate a successful EBT transaction:

  • 9999 XXXX XXXX XXXX
  • 9999XX XXXX XXXX XXXX
  • 9999XX XXXX XXXX XXX XX
  • 9999XX XXXXXXXXXXXXX

📘

Sandbox Balances

All valid test cards include $1000 SNAP and $1000 EBT Cash. These balances reset one hour after the last transaction.

Invalid EBT Test Cards

Use these to trigger specific failure scenarios.

Balance Inquiry Exceptions

EBT Test Card NumberDescription
5555 5555 5555 5514Invalid card number
5555 5555 5555 5554Expired card
6543 21XX XXXX XXXX$0 EBT Cash balance (simulate non-EBT Cash states)

Fully Hosted Exceptions

EBT Test Card NumberDescription
3333 3333 3333 3345EBT succeeds, credit card portion fails

Payment Capture Exceptions

EBT Test Card NumberDescription
4444 4444 4444 4414Invalid card number
4444 4444 4444 4443Lost/stolen card
4444 4444 4444 4451Insufficient funds
4444 4444 4444 4454Expired card
4444 4444 4444 4455Invalid PIN
4444 4444 4444 4456Credit card failure
4444 4444 4444 4462Card restricted (fraud)

Refund Exceptions

EBT Test Card NumberDescription
4333 3333 3333 3311EBT Cash refund failure
4333 3333 3333 3309SNAP refund failure

PIN Validation Exception

EBT Test Card NumberDescription
6777 7777 7777 XXXXUse any XXXX. Incorrect PIN will trigger failure.

SDK Validation Exception

EBT Test Card NumberDescription
1111 1111 1111 1111Triggers SDK input validation error. See input validation.

Miscellaneous Validation Exceptions

EBT Test Card NumberDescription
1234 1234 1234 12345Unsupported card length

HSA/FSA Test Cards

Simulate successful and failed HSA/FSA transactions using these test cards in the sandbox.

⚠️

Sandbox Use Only

These test cards are for sandbox use only. Do not use them in production.

Valid HSA/FSA Test Cards

Debit Card NumberDescription
4000 0512 3000 2839Valid HSA/FSA card
4000 0584 0000 0071Valid HSA/FSA card with partial approval

Invalid HSA/FSA Test Cards

Debit Card NumberDescription
4242 4242 4242 4242Valid format, not an HSA/FSA card
4000 0000 0000 0069Expired card
4000 0000 0000 0127Incorrect CVC
4000 0000 0000 0341Authorization failure

👉 For more information on error handling and transaction simulation, refer to the Forage API errors documentation.