plugin_dir_path = (string) $plugin_dir_path; $this->plugin_file_path = (string) $plugin_file_path; $this->plugin_log_file_path = (string) $plugin_log_file_path; $this->plugin_basename = (string) $plugin_basename; $this->plugin_dir_url = (string) $plugin_dir_url; $this->plugin_rest_namespace = (string) $plugin_rest_namespace; $this->plugin_data = (array) $plugin_data; $this->woocommerce_data = (array) $woocommerce_data; $this->environment_data = (array) $environment_data; $this->plugin_templates_path = (string) $plugin_templates_path; $this->plugin_assets_path = (string) $plugin_assets_path; $this->plugin_assets_url = (string) $plugin_assets_url; } /** * Get the integration name. */ public function get_integration_name(): string { return 'WooCommerce'; } /** * Get the plugin directory path. */ public function get_plugin_dir_path(): string { return $this->plugin_dir_path; } /** * Get the plugin file path. */ public function get_plugin_file_path(): string { return $this->plugin_file_path; } /** * Get the plugin log file path. */ public function get_plugin_log_file_path(): string { return $this->plugin_log_file_path; } /** * Get the plugin basename. */ public function get_plugin_basename(): string { return $this->plugin_basename; } /** * Get the plugin directory URL. */ public function get_plugin_dir_url(): string { return $this->plugin_dir_url; } /** * Get the plugin rest namespace. */ public function get_plugin_rest_namespace(): string { return $this->plugin_rest_namespace; } /** * Get the WooCommerce data. */ public function get_woocommerce_data(): array { return $this->woocommerce_data; } /** * Get the plugin data. */ public function get_plugin_data(): array { return $this->plugin_data; } /** * Get the plugin rest version. */ public function get_environment_data(): array { return $this->environment_data; } /** * Get the plugin templates path. */ public function get_plugin_templates_path(): string { return $this->plugin_templates_path; } /** * Get the plugin assets path. */ public function get_plugin_assets_path(): string { return $this->plugin_assets_path; } /** * Get the plugin assets URL. */ public function get_plugin_assets_url(): string { return $this->plugin_assets_url; } /** * Hook for adding order indexes. */ public function get_hook_add_order_indexes(): string { return 'sequra_order_migration_add_indexes'; } /** * Get payment gateway ID */ public function get_payment_gateway_id(): string { return 'sequra'; } /** * Get payment gateway webhook identifier */ public function get_event_webhook(): string { return 'woocommerce_' . $this->get_payment_gateway_id(); } /** * Get IPN webhook identifier */ public function get_ipn_webhook(): string { return 'woocommerce_' . $this->get_payment_gateway_id() . '_ipn'; } /** * Get return URL webhook identifier */ public function get_return_webhook(): string { return 'woocommerce_' . $this->get_payment_gateway_id() . '_return'; } }