BabelPay PSP Simulator INTERNAL TEST ONLY

An internal Card-PSP simulator that mimics a real card processor (auth / debit / capture / refund / void / cancel) so end-to-end tests don't have to depend on Citigate / Circoflow / CC7995.

Not available in production.

HTTP API

All API requests must include the shared secret header X-Sim-Key.

Outcome rules (priority order)

  1. Test card PAN match — see table below.
  2. Amount last-2-digits fallback — useful when the PAN is delivered encrypted (ev:…).
  3. Default: approved.

Test cards

PANStatus3DSDescription
4242424242424242approvedApproved (Visa, no 3DS)
4111111111111111approvedApproved (Visa, no 3DS)
5555555555554444approvedApproved (Mastercard, no 3DS)
378282246310005approvedApproved (Amex, no 3DS)
4000000000003220approvedyesApproved after 3DS challenge
4000002500003155approvedyesApproved after 3DS challenge (Visa)
5200828282828210approvedyesApproved after 3DS challenge (Mastercard)
4000000000000002do_not_honorDo not honor
4000000000009995insufficient_fundsInsufficient funds
4000000000000069expired_cardExpired card
4000000000000127invalid_cvvInvalid CVV
4000000000000119psp_malfunctionAcquirer system malfunction
4100000000000019suspected_fraudSuspected fraud
4000000000000259issuer_errIssuer or switch is inoperative
40000000000003413ds_auth_failureyes3DS authentication failure
4000000000000051psp_timeoutAcquirer timeout

Amount-last-2-digits fallback

Amount ends inStatus3DSDescription
…12invalid_amtInvalid amount
…13invalid_amtInvalid amount
…14invalid_accountInvalid card number
…33expired_cardExpired card
…51insufficient_fundsInsufficient funds
…54expired_cardExpired card
…59suspected_fraudSuspected fraud
…65do_not_honorExceeds withdrawal frequency
…79invalid_cvvInvalid CVV
…91issuer_errIssuer unavailable
…96psp_malfunctionAcquirer system malfunction
…99approvedyesApproved after 3DS challenge (amount-rule: ends in 99)
…00approvedApproved (amount-rule: ends in 00)
…01do_not_honorRefer to card issuer
…02do_not_honorDo not honor
…05insufficient_fundsInsufficient funds