Card simulator
Overview
The Gr4vy card simulator is a sandbox-only connector that can be used to simulate card payment responses. The values
for the error_code
, avs_response_code
and cvv_response_code
can be simulated by passing in different amounts, postal codes,
and security codes. This can be used when testing your integration, including when validating failover scenarios between
connectors, or when validating your handling of AVS
& CVV
responses.
Error Codes
The amount
field is used to simulate error codes. See our error Codes
documentation for all the possible error codes and each of the amounts that can be used to trigger them.
AVS Responses
A buyer’s postal_code
can be used to simulate different avs_response_code
values
for a transaction.
avs_response_code | Description | postal_code |
---|---|---|
match | The post code and address match | any other |
no_match | Neither post code or address matched | any post code containing 77 |
partial_match_postcode | Only the post code matched | any post code containing 88 |
partial_match_address | Only the address matched | any post code containing 99 |
CVV Responses
The CVV (security_code
) is used to simulate different cvv_response_code
values.
cvv_response_code | Description | security_code |
---|---|---|
match | The CVV matched | any other |
not_provided | The CVV was not provided or unable to be checked | 222 |
no_match | The CVV did not match | 333 |
Was this page helpful?