Form is submitted on review page even if there are errors

Created on 5 November 2020, about 4 years ago
Updated 22 July 2024, 4 months ago

Problem/Motivation

I am able to complete an order with a prepaid card and insufficient funds.
At checkout, in the review page, when I click on "Complete Checkout" I got an error message ("Your card has insufficient funds.") but the form is automatically submitted and the order placed.

Proposed resolution

Do not submit the form if an error message is set.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇹Italy scalas89

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024