Skip to main content

Testing

Cashier Customer Support Team is able to set up PSP/APM testing payment providers, named "Phantom", and put it in the default cascading rule.

Merchants will then be able to test their integration by simulating different scenarios pre-programmed in testing payment providers.

Card Payment

Testing provider name: Phantom PSP.

Once testing provider is configured by Cashier Customer Support Team, Merchant can deposit through this PSP using fake credit card details and test the deposit flow from end to end. https://www.freeformatter.com/credit-card-number-generator-validator.html

Non-3D flow

Use specific deposit amounts to get desired status of transaction automatically.

AmountReceived status
<= 600Success
600 < 1000Failed
>= 1000 & EvenSuccess
>= 1000 & OddFailed

3DS flow

  • Initiate a card payment using any valid card data and any amount.
  • Pending status will be returned with 3D secure form for any request. Status will be changed after submitting form.
  • Payment will be successful in case of valid OTP password: 31281.
  • Status failed will be returned for invalid OTP password (any other than 31281).

Alternative Payment Method(APM) flow

To test Alternative Payment Method (APM) flow, Merchants can use the PhantomAPM testing provider. Different deposit amounts are used to test different scenarios, listed in the table below.

AmountReceived status
<= 100Success
100 < x <= 200Failed
310 <= x <= 330Partial . Simulate Fiat APM provider
331 <= x <= 350Partial. Simulate Crypto APM provider
400 <= x <= 450Partial. Received amount less than original on 5 major units. Same for converted. Need to choose Success on Provider’s Deposit page
451 <= x <= 500Partial. Received amount more than original on 5 major units. Same for converted. Need to choose Success on Provider’s Deposit page
AnyPending (Provider’s Deposit page is shown. Can be simulated Success/Failed status)

Error codes

To get specific errors for testing card payments, please use the amounts from the table below.

AmountError code
1001REQUEST_IS_NOT_VALID
1003FIELD_VALUE_IS_NOT_VALID
1005FIELD_VALUE_IS_MISSING
1007AUTH_DATA_IS_NOT_VALID
1009CURRENCY_IS_NOT_SUPPORTED
1011DAILY_TRANSACTION_AMOUNT_LIMIT_EXCEEDED
1013DAILY_TRANSACTION_COUNT_LIMIT_EXCEEDED
1015WEEKLY_TRANSACTION_AMOUNT_LIMIT_EXCEEDED
1017WEEKLY_TRANSACTION_COUNT_LIMIT_EXCEEDED
1019MONTHLY_TRANSACTION_AMOUNT_LIMIT_EXCEEDED
1021MONTHLY_TRANSACTION_COUNT_LIMIT_EXCEEDED
1023SINGLE_TRANSACTION_AMOUNT_EXCEEDED
1025SINGLE_TRANSACTION_AMOUNT_TOO_SMALL
1027DAILY_TRANSACTION_AMOUNT_BY_CARD_EXCEEDED
1029WEEKLY_TRANSACTION_AMOUNT_BY_CARD_EXCEEDED
1031MONTHLY_TRANSACTION_AMOUNT_BY_CARD_EXCEEDED
1033DAILY_TRANSACTION_COUNT_BY_CARD_EXCEEDED
1035WEEKLY_TRANSACTION_COUNT_BY_CARD_EXCEEDED
1037MONTHLY_TRANSACTION_COUNT_BY_CARD_EXCEEDED
1039DAILY_TRANSACTION_AMOUNT_BY_EMAIL_EXCEEDED
1041WEEKLY_TRANSACTION_AMOUNT_BY_EMAIL_EXCEEDED
1043MONTHLY_TRANSACTION_AMOUNT_BY_EMAIL_EXCEEDED
1045DAILY_TRANSACTION_COUNT_BY_EMAIL_EXCEEDED
1047WEEKLY_TRANSACTION_COUNT_BY_EMAIL_EXCEEDED
1049MONTHLY_TRANSACTION_COUNT_BY_EMAIL_EXCEEDED
1051CARD_NUMBER_INVALID
1053CARD_IS_NOT_SUPPORTED
1055CVC_CHECK_FAILED
10573D_SECURE_FAILED
1059CARD_EXPIRED
1061FRAUD_ERROR
1063RISKY_TRANSACTION
1065INVALID_CREDENTIALS
1067INVALID_TOKEN
1069INTERNAL_ERROR
1071USER_TIMEOUT
1073COUNTRY_IS_NOT_SUPPORTED
1075CARD_BIN_IS_NOT_SUPPORTED
1077DEPOSIT_AMOUNT_IS_NOT_IN_RANGE
1079WRONG_RECURRING_ID
1081INVALID_ISSUER
1083CARD_AMOUNT_BY_CUSTOMER_REACHED
1085DAILY_DECLINES_BY_CARD_REACHED
1087INSUFFICIENT_FUNDS
1089TRANSACTION_IS_NOT_PERMITTED_BY_CARD
1091USER_IP_BLACKLISTED
1093BLOCKED_DUE_TO_PREVIOUS_FRAUD
1095INVALID_CARD_DATA
1097CASHIER_IP_ADDRESS_BLACKLISTED
AmountError codeMessage
1001REQUEST_IS_NOT_VALIDRequest is not valid
1003FIELD_VALUE_IS_NOT_VALIDField value is not valid
1005FIELD_VALUE_IS_MISSINGField value is missing
1007AUTH_DATA_IS_NOT_VALIDAuth data is not valid
1009CURRENCY_IS_NOT_SUPPORTEDCurrency is not supported
1011DAILY_TRANSACTION_AMOUNT_LIMIT_EXCEEDEDDaily transaction amount limit exceeded
1013DAILY_TRANSACTION_COUNT_LIMIT_EXCEEDEDDaily transaction count limit exceeded
1015WEEKLY_TRANSACTION_AMOUNT_LIMIT_EXCEEDEDWeekly transaction amount limit exceeded
1017WEEKLY_TRANSACTION_COUNT_LIMIT_EXCEEDEDWeekly transaction count limit exceeded
1019MONTHLY_TRANSACTION_AMOUNT_LIMIT_EXCEEDEDMonthly transaction amount limit exceeded
1021MONTHLY_TRANSACTION_COUNT_LIMIT_EXCEEDEDMonthly transaction count limit exceeded
1023SINGLE_TRANSACTION_AMOUNT_EXCEEDEDSingle transaction amount exceeded
1025SINGLE_TRANSACTION_AMOUNT_TOO_SMALLSingle transaction amount too small
1027DAILY_TRANSACTION_AMOUNT_BY_CARD_EXCEEDEDDaily transaction amount by card exceeded
1029WEEKLY_TRANSACTION_AMOUNT_BY_CARD_EXCEEDEDWeekly transaction amount by card exceeded
1031MONTHLY_TRANSACTION_AMOUNT_BY_CARD_EXCEEDEDMonthly transaction amount by card exceeded
1033DAILY_TRANSACTION_COUNT_BY_CARD_EXCEEDEDDaily transaction count by card exceeded
1035WEEKLY_TRANSACTION_COUNT_BY_CARD_EXCEEDEDWeekly transaction count by card exceeded
1037MONTHLY_TRANSACTION_COUNT_BY_CARD_EXCEEDEDMonthly transaction count by card exceeded
1039DAILY_TRANSACTION_AMOUNT_BY_EMAIL_EXCEEDEDDaily transaction amount by email exceeded
1041WEEKLY_TRANSACTION_AMOUNT_BY_EMAIL_EXCEEDEDWeekly transaction amount by email exceeded
1043MONTHLY_TRANSACTION_AMOUNT_BY_EMAIL_EXCEEDEDMonthly transaction amount by email exceeded
1045DAILY_TRANSACTION_COUNT_BY_EMAIL_EXCEEDEDDaily transaction count by email exceeded
1047WEEKLY_TRANSACTION_COUNT_BY_EMAIL_EXCEEDEDWeekly transaction count by email exceeded
1049MONTHLY_TRANSACTION_COUNT_BY_EMAIL_EXCEEDEDMonthly transaction count by email exceeded
1051CARD_NUMBER_INVALIDCard number invalid
1053CARD_IS_NOT_SUPPORTEDCard is not supported
1055CVC_CHECK_FAILEDCvc check failed
10573D_SECURE_FAILED3d secure failed
1059CARD_EXPIREDCard expired
1061FRAUD_ERRORFraud error
1063RISKY_TRANSACTIONRisky transaction
1065INVALID_CREDENTIALSInvalid credentials
1067INVALID_TOKENInvalid token
1069INTERNAL_ERRORInternal error
1071USER_TIMEOUTUser timeout
1073COUNTRY_IS_NOT_SUPPORTEDCountry is not supported
1075CARD_BIN_IS_NOT_SUPPORTEDCard bin is not supported
1077DEPOSIT_AMOUNT_IS_NOT_IN_RANGEDeposit amount is not in range
1079WRONG_RECURRING_IDWrong recurring id
1081INVALID_ISSUERInvalid issuer
1083CARD_AMOUNT_BY_CUSTOMER_REACHEDCard amount by customer reached
1085DAILY_DECLINES_BY_CARD_REACHEDDaily declines by card reached
1087INSUFFICIENT_FUNDSInsufficient funds
1089TRANSACTION_IS_NOT_PERMITTED_BY_CARDTransaction is not permitted by card
1091USER_IP_BLACKLISTEDUser ip blacklisted
1093BLOCKED_DUE_TO_PREVIOUS_FRAUDBlocked due to previous fraud
1095INVALID_CARD_DATAInvalid card data
1097CASHIER_IP_ADDRESS_BLACKLISTEDCashier ip address blacklisted
10991001Card expired
11011003Card number is invalid
11031004Cardholder name is invalid
11051005Card not verified
11071006Account not verified
11091007Card is unusable
11111008Coupon is unusable
11132001Technical issue occurred
11153001Risk error
11174001Payment limitation
11194002Currency not supported
11214003Authentication failed
11234004Country not supported
11254005IP is restricted
11279001Transaction completion error
11299002Account creation error
113110000Undefined error

Refund transaction

AmountReceived status
300Pending
EvenSuccess
OddFailed