r( $fields, 'digital_wallet_heading', array( 'applepay_button_enabled' => array( 'title' => __( 'Apple Pay Button', 'woocommerce-paypal-payments' ), 'title_html' => sprintf( '%s', $module_url, __( 'Apple Pay', 'woocommerce-paypal-payments' ) ), 'type' => 'checkbox', 'class' => array( 'ppcp-grayed-out-text' ), 'input_class' => array( 'ppcp-disabled-checkbox' ), 'label' => __( 'Enable Apple Pay button', 'woocommerce-paypal-payments' ) . '

' . sprintf( // translators: %1$s and %2$s are the opening and closing of HTML tag. __( 'Your PayPal account %1$srequires additional permissions%2$s to enable Apple Pay.', 'woocommerce-paypal-payments' ), $connection_link, '' ) . '

', 'default' => 'yes', 'screens' => array( State::STATE_ONBOARDED ), 'gateway' => 'dcc', 'requirements' => array(), 'custom_attributes' => array( 'data-ppcp-display' => wp_json_encode( array( $display_manager ->rule() ->condition_is_true( false ) ->action_enable( 'applepay_button_enabled' ) ->to_array(), ) ), ), 'classes' => array( 'ppcp-valign-label-middle', 'ppcp-align-label-center' ), ), ) ); } return $insert_after( $fields, 'digital_wallet_heading', array( 'spacer' => array( 'title' => '', 'type' => 'ppcp-text', 'text' => '', 'class' => array(), 'classes' => array( 'ppcp-active-spacer' ), 'screens' => array( State::STATE_ONBOARDED ), 'gateway' => 'dcc', 'requirements' => array(), ), 'applepay_button_enabled' => array( 'title' => __( 'Apple Pay Button', 'woocommerce-paypal-payments' ), 'title_html' => sprintf( '%s', $module_url, __( 'Apple Pay', 'woocommerce-paypal-payments' ) ), 'type' => 'checkbox', 'label' => __( 'Enable Apple Pay button', 'woocommerce-paypal-payments' ) . '

' . sprintf( // translators: %1$s and %2$s are the opening and closing of HTML tag. __( 'Buyers can use %1$sApple Pay%2$s to make payments on the web using the Safari web browser or an iOS device.', 'woocommerce-paypal-payments' ), '', '' ) . '

', 'default' => 'yes', 'screens' => array( State::STATE_ONBOARDED ), 'gateway' => 'dcc', 'requirements' => array(), 'custom_attributes' => array( 'data-ppcp-display' => wp_json_encode( array( $display_manager ->rule() ->condition_element( 'applepay_button_enabled', '1' ) ->action_visible( 'applepay_button_domain_registration' ) ->action_visible( 'applepay_button_domain_validation' ) ->action_visible( 'applepay_button_device_eligibility' ) ->action_visible( 'applepay_button_color' ) ->action_visible( 'applepay_button_type' ) ->action_visible( 'applepay_button_language' ) ->action_visible( 'applepay_checkout_data_mode' ) ->action_class( 'applepay_button_enabled', 'active' ) ->to_array(), ) ), ), 'classes' => array( 'ppcp-valign-label-middle', 'ppcp-align-label-center' ), ), 'applepay_button_domain_registration' => array( 'title' => __( 'Domain Registration', 'woocommerce-paypal-payments' ), 'type' => 'ppcp-text', 'text' => '' . __( 'Manage Domain Registration', 'woocommerce-paypal-payments' ) . '' . '

' . __( 'Any (sub)domain names showing an Apple Pay button must be registered on the PayPal website. If the domain displaying the Apple Pay button isn\'t registered, the payment method won\'t work.', 'woocommerce-paypal-payments' ) . '

', 'desc_tip' => true, 'description' => __( 'Registering the website domain on the PayPal site is mandated by Apple. Payments will fail if the Apple Pay button is used on an unregistered domain.', 'woocommerce-paypal-payments' ), 'classes' => array( 'ppcp-field-indent' ), 'class' => array(), 'screens' => array( State::STATE_ONBOARDED ), 'gateway' => 'dcc', 'requirements' => array(), ), 'applepay_button_domain_validation' => array( 'title' => __( 'Domain Validation', 'woocommerce-paypal-payments' ), 'type' => 'ppcp-text', 'text' => $domain_validation_text . '

' . sprintf( // translators: %1$s and %2$s are the opening and closing of HTML tag. __( 'Note: PayPal Payments automatically presents the %1$sdomain association file%2$s for Apple to validate your registered domain.', 'woocommerce-paypal-payments' ), '', '' ) . '

', 'desc_tip' => true, 'description' => __( 'Apple requires the website domain to be registered and validated. PayPal Payments automatically presents your domain association file for Apple to validate the manually registered domain.', 'woocommerce-paypal-payments' ), 'classes' => array( 'ppcp-field-indent' ), 'class' => array(), 'screens' => array( State::STATE_ONBOARDED ), 'gateway' => 'dcc', 'requirements' => array(), ), 'applepay_button_device_eligibility' => array( 'title' => __( 'Device Eligibility', 'woocommerce-paypal-payments' ), 'type' => 'ppcp-text', 'text' => $device_eligibility_text . '

' . $device_eligibility_notes . '

', 'desc_tip' => true, 'description' => __( 'Apple Pay demands certain Apple devices for secure payment execution. This helps determine if your current device is compliant.', 'woocommerce-paypal-payments' ), 'classes' => array( 'ppcp-field-indent' ), 'class' => array(), 'screens' => array( State::STATE_ONBOARDED ), 'gateway' => 'dcc', 'requirements' => array(), ), 'applepay_button_type' => array( 'title' => __( 'Button Label', 'woocommerce-paypal-payments' ), 'type' => 'select', 'desc_tip' => true, 'description' => __( 'This controls the label of the Apple Pay button.', 'woocommerce-paypal-payments' ), 'classes' => array( 'ppcp-field-indent' ), 'class' => array(), 'input_class' => array( 'wc-enhanced-select' ), 'default' => 'pay', 'options' => PropertiesDictionary::button_types(), 'screens' => array( State::STATE_ONBOARDED ), 'gateway' => 'dcc', 'requirements' => array(), ), 'applepay_button_color' => array( 'title' => __( 'Button Color', 'woocommerce-paypal-payments' ), 'type' => 'select', 'desc_tip' => true, 'description' => __( 'The Apple Pay Button may appear as a black button with white lettering, white button with black lettering, or a white button with black lettering and a black outline.', 'woocommerce-paypal-payments' ), 'label' => '', 'input_class' => array( 'wc-enhanced-select' ), 'classes' => array( 'ppcp-field-indent' ), 'class' => array(), 'default' => 'black', 'options' => PropertiesDictionary::button_colors(), 'screens' => array( State::STATE_ONBOARDED ), 'gateway' => 'dcc', 'requirements' => array(), ), 'applepay_button_language' => array( 'title' => __( 'Button Language', 'woocommerce-paypal-payments' ), 'type' => 'select', 'desc_tip' => true, 'description' => __( 'The language and region used for the displayed Apple Pay button. The default value is the current language and region setting in a browser.', 'woocommerce-paypal-payments' ), 'classes' => array( 'ppcp-field-indent' ), 'class' => array(), 'input_class' => array( 'wc-enhanced-select' ), 'default' => 'en', 'options' => PropertiesDictionary::button_languages(), 'screens' => array( State::STATE_ONBOARDED ), 'gateway' => 'dcc', 'requirements' => array(), ), 'applepay_checkout_data_mode' => array( 'title' => __( 'Send checkout billing and shipping data to Apple Pay', 'woocommerce-paypal-payments' ), 'type' => 'select', 'classes' => array( 'ppcp-field-indent' ), 'class' => array(), 'input_class' => array( 'wc-enhanced-select' ), 'desc_tip' => true, 'description' => __( 'Using the WC form data increases convenience for the customers, but can cause issues if Apple Pay details do not match the billing and shipping data in the checkout form.', 'woocommerce-paypal-payments' ), 'default' => PropertiesDictionary::BILLING_DATA_MODE_DEFAULT, 'options' => PropertiesDictionary::billing_data_modes(), 'screens' => array( State::STATE_ONBOARDED ), 'gateway' => 'dcc', 'requirements' => array(), ), ) ); }, );
Fatal error: Uncaught TypeError: WooCommerce\PayPalCommerce\Vendor\Dhii\Container\ServiceProvider::__construct(): Argument #2 ($extensions) must be of type array, int given, called in /htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-applepay/src/ApplepayModule.php on line 36 and defined in /htdocs/wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/ServiceProvider.php:29 Stack trace: #0 /htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-applepay/src/ApplepayModule.php(36): WooCommerce\PayPalCommerce\Vendor\Dhii\Container\ServiceProvider->__construct(Array, 1) #1 /htdocs/wp-content/plugins/woocommerce-paypal-payments/bootstrap.php(39): WooCommerce\PayPalCommerce\Applepay\ApplepayModule->setup() #2 [internal function]: {closure}(Object(WooCommerce\PayPalCommerce\Applepay\ApplepayModule)) #3 /htdocs/wp-content/plugins/woocommerce-paypal-payments/bootstrap.php(41): array_map(Object(Closure), Array) #4 /htdocs/wp-content/plugins/woocommerce-paypal-payments/woocommerce-paypal-payments.php(76): {closure}('/htdocs/wp-cont...') #5 /htdocs/wp-content/plugins/woocommerce-paypal-payments/woocommerce-paypal-payments.php(91): WooCommerce\PayPalCommerce\init() #6 /htdocs/wp-includes/class-wp-hook.php(324): WooCommerce\PayPalCommerce\{closure}('') #7 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #8 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #9 /htdocs/wp-settings.php(550): do_action('plugins_loaded') #10 /htdocs/wp-config.php(178): require_once('/htdocs/wp-sett...') #11 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #12 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #13 /htdocs/index.php(17): require('/htdocs/wp-blog...') #14 {main} thrown in /htdocs/wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/ServiceProvider.php on line 29