Testing your ECR integration will allow you to verify that your integration is working as intended before moving to a production environment.
Key testing steps include:
Validate the happy flow.
Examine non-happy flows, encompassing scenarios like time-outs and connection issues, while confirming transaction status.
Replicate diverse acquirer responses to assess your handling of declined transactions.
Conduct tests with various Cardholder Verification Methods (CVM).
You can get emulated cards for test environment from:
Visa CDET application on Playstore
Mastercard Test Tool application (.apk), attached below
AMEX Test Emulator application (.apk), attached below
For physical cards, you should check with your acquirer or with your Market Pay point of contact.
To test non-happy flows, when using Market Pay test environment, there is a rule to return a specific response code according to the amount received when it matches following format: 9XXX, where
9 is static
XXX is response code you wish to receive.
e.g.: expected received response from is 116 (Not sufficient funds). You need to make a transaction with the amount 9116.