Skip to content

Commit 374da44

Browse files
authored
Remove validation error check from classic checkout before pm creation (#4556)
1 parent a782fbe commit 374da44

File tree

3 files changed

+4
-18
lines changed

3 files changed

+4
-18
lines changed

changelog.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@
2424
* Tweak - Update checkout error message for invalid API key to be more generic and user-friendly
2525
* Tweak - Disable Amazon Pay in the merchant's Payment Method Configuration object if it is still behind a feature flag
2626
* Fix - Only clear customer cache when an action has been performed
27+
* Fix - Remove validation error check from classic checkout before payment method creation
28+
* Dev - Clean up LPM (Local Payment Method) feature flags and related code
2729
* Dev - Move some testing and compiler node dependencies to devDependencies
2830
* Dev - Minor CSS change to comply with a SASS rule deprecation
29-
* Dev - Remove LPM feature flags
3031
* Dev - Update SCSS to replace @import with @use and @forward
3132

3233
= 9.7.1 - 2025-07-28 =

client/classic/upe/deferred-intent.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,6 @@ jQuery( function ( $ ) {
4141
} );
4242

4343
$( 'form.checkout' ).on( generateCheckoutEventNames(), function () {
44-
const $form = $( 'form.checkout' );
45-
// Lose focus for all fields to trigger validation
46-
$form
47-
.find( '.input-text, select, input:checkbox' )
48-
.trigger( 'validate' )
49-
.trigger( 'blur' );
50-
51-
const hasValidationErrors =
52-
$form.find( '.woocommerce-invalid' ).length > 0 &&
53-
$form.find( '.woocommerce-invalid' ).is( ':visible' );
54-
55-
// Return if there is a validation error on the checkout fields
56-
if ( hasValidationErrors ) {
57-
return;
58-
}
59-
6044
return processPaymentIfNotUsingSavedMethod( $( this ) );
6145
} );
6246

readme.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,10 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
133133
* Tweak - Update checkout error message for invalid API key to be more generic and user-friendly
134134
* Tweak - Disable Amazon Pay in the merchant's Payment Method Configuration object if it is still behind a feature flag
135135
* Fix - Only clear customer cache when an action has been performed
136+
* Fix - Remove validation error check from classic checkout before payment method creation
137+
* Dev - Clean up LPM (Local Payment Method) feature flags and related code
136138
* Dev - Move some testing and compiler node dependencies to devDependencies
137139
* Dev - Minor CSS change to comply with a SASS rule deprecation
138-
* Dev - Remove LPM feature flags
139140
* Dev - Update SCSS to replace @import with @use and @forward
140141

141142
[See changelog for full details across versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).

0 commit comments

Comments
 (0)