HomeGuidesReference
Log In

Test EBT Cards

Forage SDKs include built-in EBT Card Number validation in both sandbox and production. This guide lists valid EBT test card numbers for developing against successful transactions and invalid EBT test card numbers for triggering exceptions.

🚧

Replace any XXXXXXs with numbers of your choice.

Valid EBT test card numbers

To exclusively test successful EBT transactions, use any 16, 18, or 19 digit number starting with 9999, for example:

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

All sandbox test cards have $100 SNAP and $100 EBT Cash balances that reset at the end of each day. You can make purchases and refunds using these cards just as you would expect to in production.

Invalid EBT test card numbers

Use the EBT test card numbers in the following sections to trigger specific error scenarios:

Balance inquiry exceptions

EBT Card NumberTest case
5555 5555 5555 5514Invalid card number
5555 5555 5555 5554Expired card
6543 21XX XXXX XXXXReturns $0 for the EBT Cash balance on balance checks.

Use to test cards for US states that don't support EBT Cash.

Fully Hosted exceptions

EBT Card NumberTest case
3333 3333 3333 3345EBT transaction succeeds, but the credit card portion of the transaction fails.

Payment Capture exceptions

EBT Card NumberTest case
4444 4444 4444 4443Lost/stolen card
4444 4444 4444 4454Expired card
4444 4444 4444 4451Insufficient funds
4444 4444 4444 4455Invalid PIN
4444 4444 4444 4462Card restricted due to fraud concern

PIN validation exception

EBT Card NumberTest case
6777 7777 7777 XXXXReplace XXXX with any 4-digit number.
To test for an invalid PIN entry, enter a PIN that does not match XXXX.

SDK validation exceptions

EBT Card NumberTest case
1111 1111 1111 1111Sets the EBT Card Number input validation state to false .

Use to test error handling event listeners.

📘

Find more information on handling EBT errors with Forage in the API errors reference documentation.