Refactor button renderer settings handling

This commit is contained in:
Alex P 2022-07-18 16:27:06 +03:00
parent 8c77258828
commit 0ff11054f8
8 changed files with 31 additions and 24 deletions

View file

@ -831,9 +831,8 @@ class SmartButton implements SmartButtonInterface {
),
),
'hosted_fields' => array(
'wrapper' => '#ppcp-hosted-fields',
'mini_cart_wrapper' => '#ppcp-hosted-fields-mini-cart',
'labels' => array(
'wrapper' => '#ppcp-hosted-fields',
'labels' => array(
'credit_card_number' => '',
'cvv' => '',
'mm_yy' => __( 'MM/YY', 'woocommerce-paypal-payments' ),
@ -847,8 +846,8 @@ class SmartButton implements SmartButtonInterface {
),
'cardholder_name_required' => __( 'Cardholder\'s first and last name are required, please fill the checkout form required fields.', 'woocommerce-paypal-payments' ),
),
'valid_cards' => $this->dcc_applies->valid_cards(),
'contingency' => $this->get_3ds_contingency(),
'valid_cards' => $this->dcc_applies->valid_cards(),
'contingency' => $this->get_3ds_contingency(),
),
'messages' => $this->message_values(),
'labels' => array(