mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Display error message when order is not created, do not handle place order button display when acdc is not enabled
This commit is contained in:
parent
61aa53c188
commit
7f553087c6
2 changed files with 11 additions and 1 deletions
|
@ -89,6 +89,12 @@ class CheckoutBootstap {
|
|||
}
|
||||
|
||||
displayPlaceOrderButtonForSavedCreditCards() {
|
||||
const currentPaymentMethod = jQuery(
|
||||
'input[name="payment_method"]:checked').val();
|
||||
if (currentPaymentMethod !== 'ppcp-credit-card-gateway') {
|
||||
return;
|
||||
}
|
||||
|
||||
if (jQuery('#saved-credit-card').length && jQuery('#saved-credit-card').val() !== '') {
|
||||
this.renderer.hideButtons(this.gateway.button.wrapper)
|
||||
this.renderer.hideButtons(this.gateway.messages.wrapper)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue