Skip to content

Test Cards ​

PayRex provides test card numbers for simulating various payment scenarios in test mode. Use any valid future expiration date (e.g., 12/34) and any three-digit CVC (e.g., 123).

Successful Payments ​

Card NumberBrandType
4242424242424242VisaCredit
4701322211111234VisaDebit
5425233430109903MastercardCredit
5200828282828210MastercardDebit

By Country ​

Card NumberCountry
4242424242424242US
4000000760000002PH (Philippines)

Failure Scenarios ​

Use these cards to test your error handling. The failed_code value appears in the last_payment_error attribute of the Payment Intent (see Debugging Failed Payments).

Card NumberScenariofailed_code
4000000000001000Fraudulent transaction errorblocked
4005550000000019Generic decline errorgeneric_decline
4503300000000008Insufficient fund errorfunds_insufficient
4205260000000005Incorrect CVCcvc_incorrect
4001270000000000Processing errorprocessing_error
4012000033330026System errorsystem_error

3D Secure Scenarios ​

Card NumberScenariofailed_code
4311780000241409Frictionless authentication (succeeds without challenge)not applicable
4000000000000077Declined frictionless authenticationgeneric_decline

INFO

Test card numbers only work in test mode. They cannot be used for real payments. For more details, see the PayRex Testing documentation.

Further Reading ​

Released under the MIT License.