s_page ) { return false; } return true; } /** * Adds seller status failure notice. * * @return void */ private function add_seller_status_failure_notice(): void { add_filter( Repository::NOTICES_FILTER, /** * Adds seller status notice. * * @param array $notices The notices. * @return array * * @psalm-suppress MissingClosureParamType */ static function ( $notices ): array { $message = sprintf( // translators: %1$s and %2$s are the opening and closing of HTML tag. __( '

Notice: We could not determine your PayPal seller status to list your available features. Disconnect and reconnect your PayPal account through our %1$sonboarding process%2$s to resolve this.

Don\'t worry if you cannot use the %1$sonboarding process%2$s; most functionalities available to your account should work.

', 'woocommerce-paypal-payments' ), '
', '' ); // Name the key so it can be overridden in other modules. $notices['error_product_status'] = new Message( $message, 'warning', true, 'ppcp-notice-wrapper' ); return $notices; } ); } /** * Adds not available notice. * * @return void */ private function add_not_available_notice(): void { add_filter( Repository::NOTICES_FILTER, /** * Adds ApplePay not available notice. * * @param array $notices The notices. * @return array * * @psalm-suppress MissingClosureParamType */ static function ( $notices ): array { $message = sprintf( __( 'Apple Pay is not available on your PayPal seller account.', 'woocommerce-paypal-payments' ) ); $notices[] = new Message( $message, 'warning', true, 'ppcp-notice-wrapper' ); return $notices; } ); } /** * Adds ApplePay server not supported notice. * * @return void */ private function add_server_not_supported_notice(): void { add_filter( Repository::NOTICES_FILTER, /** * Adds ApplePay server not supported notice. * * @param array $notices The notices. * @return array * * @psalm-suppress MissingClosureParamType */ static function ( $notices ): array { $message = sprintf( __( 'Apple Pay is not supported on this server. Please contact your hosting provider to enable it.', 'woocommerce-paypal-payments' ) ); $notices[] = new Message( $message, 'error', true, 'ppcp-notice-wrapper' ); return $notices; } ); } /** * Adds ApplePay merchant not validated notice. * * @return void */ private function add_merchant_not_validated_notice(): void { add_filter( Repository::NOTICES_FILTER, /** * Adds ApplePay merchant not validated notice. * * @param array $notices The notices. * @return array * * @psalm-suppress MissingClosureParamType */ static function ( $notices ): array { $message = sprintf( // translators: %1$s and %2$s are the opening and closing of HTML tag for the well-known file, %3$s and %4$s are the opening and closing of HTML tag for the help document. __( 'Apple Pay has not yet been validated. Use the Apple Pay button in your shop for Apple to validate your domain. If this message persists after using the button, please verify your website displays the correct %1$sdomain association file%2$s. More details about the Apple Pay setup can be found in the %3$sPayPal Payments documentation%4$s.', 'woocommerce-paypal-payments' ), '', '', '', '' ); $notices[] = new Message( $message, 'error', true, 'ppcp-notice-wrapper' ); return $notices; } ); } }
Fatal error: Uncaught Error: Class "WooCommerce\PayPalCommerce\Applepay\Helper\AvailabilityNotice" not found in /htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-applepay/services.php:56 Stack trace: #0 /htdocs/wp-content/plugins/woocommerce-paypal-payments/lib/packages/Inpsyde/Modularity/Container/ReadOnlyContainer.php(71): WooCommerce\PayPalCommerce\Applepay\ApplepayModule::WooCommerce\PayPalCommerce\Applepay\{closure}(Object(WooCommerce\PayPalCommerce\Vendor\Inpsyde\Modularity\Container\ReadOnlyContainer)) #1 /htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-applepay/src/ApplepayModule.php(80): WooCommerce\PayPalCommerce\Vendor\Inpsyde\Modularity\Container\ReadOnlyContainer->get('applepay.availa...') #2 /htdocs/wp-includes/class-wp-hook.php(324): WooCommerce\PayPalCommerce\Applepay\ApplepayModule::WooCommerce\PayPalCommerce\Applepay\{closure}('') #3 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #4 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /htdocs/wp-settings.php(704): do_action('init') #6 /htdocs/wp-config.php(113): require_once('/htdocs/wp-sett...') #7 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #8 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #9 /htdocs/index.php(17): require('/htdocs/wp-blog...') #10 {main} thrown in /htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-applepay/services.php on line 56