Helpers::get_auth_opts() ); } catch ( Exception $e ) { return false; } return $webhook; } /** * Get list of all webhook endpoints. * * @since 1.8.4 * * @return array */ private function get_all(): array { try { $webhooks = WebhookEndpoint::all( [], Helpers::get_auth_opts() ); } catch ( Exception $e ) { return []; } return isset( $webhooks->data ) ? (array) $webhooks->data : []; } /** * Save webhook settings. * * @since 1.8.4 * * @param WebhookEndpoint $webhook Webhook endpoint. */ private function save_settings( $webhook ) { $mode = Helpers::get_stripe_mode(); $settings = (array) get_option( 'wpforms_settings', [] ); // Save webhooks endpoint ID. $settings[ 'stripe-webhooks-id-' . $mode ] = sanitize_text_field( $webhook->id ); // Store webhooks endpoint secret, but it is not defined on ::update() call. if ( ! empty( $webhook->secret ) ) { $settings[ 'stripe-webhooks-secret-' . $mode ] = sanitize_text_field( $webhook->secret ); WebhooksHealthCheck::save_status( WebhooksHealthCheck::SIGNATURE_OPTION, WebhooksHealthCheck::STATUS_OK ); } WebhooksHealthCheck::save_status( WebhooksHealthCheck::ENDPOINT_OPTION, WebhooksHealthCheck::STATUS_OK ); // Enable webhooks setting shouldn't be rewritten. if ( ! isset( $settings['stripe-webhooks-enabled'] ) ) { $settings['stripe-webhooks-enabled'] = true; } update_option( 'wpforms_settings', $settings ); } }
Fatal error: Uncaught Error: Class "WPForms\Integrations\Stripe\Api\WebhooksManager" not found in /htdocs/wp-content/plugins/wpforms-lite/src/Integrations/Stripe/WebhooksHealthCheck.php:73 Stack trace: #0 /htdocs/wp-content/plugins/wpforms-lite/src/Integrations/Stripe/Stripe.php(57): WPForms\Integrations\Stripe\WebhooksHealthCheck->init() #1 /htdocs/wp-content/plugins/wpforms-lite/src/Integrations/Loader.php(79): WPForms\Integrations\Stripe\Stripe->load() #2 /htdocs/wp-content/plugins/wpforms-lite/src/Integrations/Loader.php(64): WPForms\Integrations\Loader->load_integration(Object(WPForms\Integrations\Stripe\Stripe)) #3 /htdocs/wp-content/plugins/wpforms-lite/src/Integrations/Loader.php(22): WPForms\Integrations\Loader->__construct() #4 /htdocs/wp-includes/class-wp-hook.php(324): WPForms\Integrations\Loader::get_instance('') #5 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(Object(WPForms\Providers\Providers), Array) #6 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /htdocs/wp-content/plugins/wpforms-lite/src/WPForms.php(305): do_action('wpforms_loaded') #8 /htdocs/wp-includes/class-wp-hook.php(324): WPForms\WPForms->objects('') #9 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #10 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #11 /htdocs/wp-settings.php(559): do_action('plugins_loaded') #12 /htdocs/wp-config.php(87): require_once('/htdocs/wp-sett...') #13 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #14 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #15 /htdocs/index.php(17): require('/htdocs/wp-blog...') #16 {main} thrown in /htdocs/wp-content/plugins/wpforms-lite/src/Integrations/Stripe/WebhooksHealthCheck.php on line 73