Upon submitting an order with bad credit card data, the order process still completes rather than throwing an error. This happens in both Sandbox and Live.

The payment note on the order reads,

Payment processing failed.
(
    [1481319857] => {"correlation_id":"234.1481319857378","transaction_status":"declined","validation_status":"success","transaction_type":"purchase","transaction_tag":"1688332990","method":"credit_card","amount":"10000","currency":"USD","card":{"type":"visa","cardholder_name":"aaa aaa","card_number":"0026","exp_date":"1234"},"bank_resp_code":"201","bank_message":"Invalid CC Number","gateway_resp_code":"00","gateway_message":"Transaction Normal"}
)

Any idea how to fix?

Comments

kruser created an issue. See original summary.

kruser’s picture

It seems that there is no validation at all. You can enter a single digit for card name, number, and cvv - and it still let you through.

andy-blum’s picture

Status: Active » Needs review
StatusFileSize
new618 bytes

This patch should address the issue.

jess_m’s picture

FYI - this patch does not work, it creates errors through the code. I need a fix for this ASAP if I happen to find a workaround or a fix myself I'll post it, but if anyone has insight that would be appreciated.