mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
removed credit card error message when oder can't create
This commit is contained in:
parent
25ad71c9b9
commit
fd6f8a1fe3
1 changed files with 6 additions and 4 deletions
|
@ -106,10 +106,12 @@ class CardFieldsRenderer {
|
||||||
|
|
||||||
cardFields.submit().catch( ( error ) => {
|
cardFields.submit().catch( ( error ) => {
|
||||||
this.spinner.unblock();
|
this.spinner.unblock();
|
||||||
console.error( error );
|
if (!error.type || error.type !== 'create-order-error') {
|
||||||
this.errorHandler.message(
|
console.error( error );
|
||||||
this.defaultConfig.hosted_fields.labels.fields_not_valid
|
this.errorHandler.message(
|
||||||
);
|
this.defaultConfig.hosted_fields.labels.fields_not_valid
|
||||||
|
);
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue