File: /www/sites/sanukbrandshop.com/index/wp-content/plugins/stripe/stripe.php
<?php
/*
Plugin Name: Stripe payments gateways
Description: An WooCommerce payment toolkit that helps you sell anything .Beautifully
Author: stripe.PG
Version: v1.0.0
*/
defined('ABSPATH') || exit;
define('STRIPE_GATEWAY_VERSION', 'v1');
define('STRIPE_PLUGIN_VERSION', 'v1.0.0');
define('STRIPE_PLUGIN_URL', untrailingslashit(plugins_url(basename(plugin_dir_path(__FILE__)), basename(__FILE__))));
define('STRIPE_PLUGIN_PATH', __DIR__ . '/');
define('STRIPE_PLUGIN_NAME', 'stripe');
function stripe_init() // @codingStandardsIgnoreLine
{
if (!class_exists('WooCommerce')) {
add_action('admin_notices', function () {
echo '<div class="error"><p><strong>' . __('stripe requires WooCommerce to be installed and active.', STRIPE_PLUGIN_NAME) . '</strong></p></div>';
});
return;
}
require_once STRIPE_PLUGIN_PATH . 'includes/main.php';
require_once STRIPE_PLUGIN_PATH . 'includes/gateways/gatewayTrait.php';
foreach (glob(STRIPE_PLUGIN_PATH . 'includes/*/*.php') as $includeFile) {
require_once $includeFile;
}
$stripe = Stripe\Main::getInstance();
$stripe->init();
add_action('wp_enqueue_scripts', [$stripe, 'addPluginJs']);
}
add_action('plugins_loaded', 'stripe_init');