Some of our customers were confused by payment failure with no explanation. It seems like the only condition that is actually reported back to the customer is if the payment communication fails completely (meaning commerce_cybersource_sawm_reply_validate() fails)? There doesn't seem to be provision for reporting actual payment failures (e.g. "card declined" or "CVV2 failure") to the customer.

Find attached a basic patch to report the failure message from the transaction directly to the customer, I feel like it should have some kind of softening (the "Please review your information" from the payment failure branch) but I'm just going with the raw return message for now.

Comments

kingandy created an issue. See original summary.

kingandy’s picture

StatusFileSize
new1.11 KB

Aha okay yes that patch has a pretty obvious error in it, please ignore, use this one instead.

Also I spruced up the message itself a little, it now leads with a bit of "please review" user-friendly text.