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
XXXXXX
s 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 $1000 SNAP and $1000 EBT Cash balances that reset one hour after the test card is last used. For example, if you attempt a second capture or refund on the test card, then the new balance is preserved up to one hour after the second transaction.
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 Number | Test case |
---|---|
5555 5555 5555 5514 | Invalid Card number |
5555 5555 5555 5554 | Expired card |
6543 21XX XXXX XXXX | Returns $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 Number | Test case |
---|---|
3333 3333 3333 3345 | EBT transaction succeeds, but the credit card portion of the transaction fails. |
Payment Capture exceptions
EBT Card Number | Test case |
---|---|
4444 4444 4444 4414 | Invalid Card number |
4444 4444 4444 4443 | Lost/stolen card |
4444 4444 4444 4451 | Insufficient funds |
4444 4444 4444 4454 | Expired card |
4444 4444 4444 4455 | Invalid PIN |
4444 4444 4444 4456 | Credit Card failure |
4444 4444 4444 4462 | Card restricted due to fraud concern |
Refund exceptions
EBT Card Number | Test case |
---|---|
4333333333333311 | Test an EBT Cash refund that fails. |
4333333333333309 | Test a SNAP refund that fails. |
PIN validation exception
EBT Card Number | Test case |
---|---|
6777 7777 7777 XXXX | Replace 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 Number | Test case |
---|---|
1111 1111 1111 1111 | Sets 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.
Updated 7 months ago