When a payment transaction failed (wrong credit card number or else), I'm redirected to the checkout confirmation page without any message as if the transaction didn't fail.

We should handle the error messages and redirect the user to either:

  • the confirmation page with a message saying that the transaction failed and why
  • the payment page (using the commerce previous page redirect hook) with a message saying that the transaction failed and why

Comments

GuGuss’s picture

Status: Active » Needs review
StatusFileSize
new1.28 KB

Here is a patch !

It redirects the user to the previous page when the validation failed and set a message to the watchdog containing the error number and message.

GuGuss’s picture

Status: Needs review » Fixed

Committed here

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.