HomeGuidesReferenceChangelog↗ Forage Dashboard
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 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.

PIN Error Code Exceptions

Use these cards to trigger a specific EBT error by choosing the PIN.

EBT Test Card NumberDescription
6004 8622 2333 4445 556Use any PIN. The last two digits of the PIN set the transaction result.
5077 1900 0598 9385EBT chip test card for chip insert and contactless tap. Use any PIN. The last two digits of the PIN set the transaction result.
PIN ends inResult
00Transaction succeeds
33ebt_error_S5 (PIN not selected)
A numeric EBT error code, for example 55The matching ebt_error_* code, for example ebt_error_55
Any other digitsebt_error_05 (General denial)
📘

Why 33 returns ebt_error_S5

A PIN pad only accepts digits, so a PIN can't end in S5. Use a PIN ending in 33 to trigger ebt_error_S5 instead.

For the full list of EBT error codes, refer to Endpoint and SDK method errors.

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.


Did this page help you?