diff --git a/modules/ppcp-applepay/src/Assets/BlocksPaymentMethod.php b/modules/ppcp-applepay/src/Assets/BlocksPaymentMethod.php index 2266f4c73..79a9efe9e 100644 --- a/modules/ppcp-applepay/src/Assets/BlocksPaymentMethod.php +++ b/modules/ppcp-applepay/src/Assets/BlocksPaymentMethod.php @@ -113,7 +113,7 @@ class BlocksPaymentMethod extends AbstractPaymentMethodType { 'id' => $this->name, 'title' => $paypal_data['title'], // TODO : see if we should use another. 'description' => $paypal_data['description'], // TODO : see if we should use another. - 'enabled' => $paypal_data['enabled'], // This button is enabled when PayPal buttons are. + 'enabled' => $paypal_data['smartButtonsEnabled'], // This button is enabled when PayPal buttons are. 'scriptData' => $script_data, ); } diff --git a/modules/ppcp-googlepay/src/Assets/BlocksPaymentMethod.php b/modules/ppcp-googlepay/src/Assets/BlocksPaymentMethod.php index 0f9ff871b..a8dd8f9c4 100644 --- a/modules/ppcp-googlepay/src/Assets/BlocksPaymentMethod.php +++ b/modules/ppcp-googlepay/src/Assets/BlocksPaymentMethod.php @@ -107,7 +107,7 @@ class BlocksPaymentMethod extends AbstractPaymentMethodType { 'id' => $this->name, 'title' => $paypal_data['title'], // See if we should use another. 'description' => $paypal_data['description'], // See if we should use another. - 'enabled' => $paypal_data['enabled'], // This button is enabled when PayPal buttons are. + 'enabled' => $paypal_data['smartButtonsEnabled'], // This button is enabled when PayPal buttons are. 'scriptData' => $this->button->script_data(), ); }