2022-11-27 15:03:07 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Plugin Name: Easy Digital Downloads - Stripe Pro Payment Gateway
|
|
|
|
* Plugin URI: https://easydigitaldownloads.com/downloads/stripe-gateway/
|
|
|
|
* Description: Adds a payment gateway for Stripe.com
|
2023-03-29 18:20:17 +00:00
|
|
|
* Version: 2.9.2.1
|
2023-03-17 22:34:04 +00:00
|
|
|
* Requires at least: 5.4
|
|
|
|
* Requires PHP: 7.1
|
2022-11-27 15:03:07 +00:00
|
|
|
* Author: Easy Digital Downloads
|
|
|
|
* Author URI: https://easydigitaldownloads.com
|
|
|
|
* Text Domain: edds
|
|
|
|
* Domain Path: languages
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the one true instance of EDD_Stripe
|
|
|
|
*
|
|
|
|
* @since 2.8.1
|
|
|
|
*
|
|
|
|
* @return void|\EDD_Stripe EDD_Stripe instance or void if Easy Digital
|
|
|
|
* Downloads is not active.
|
|
|
|
*/
|
|
|
|
function edd_stripe_core_bootstrap() {
|
|
|
|
// Easy Digital Downloads is not active, do nothing.
|
|
|
|
if ( ! function_exists( 'EDD' ) ) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Stripe is already active, do nothing.
|
|
|
|
if ( class_exists( 'EDD_Stripe' ) ) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( ! defined( 'EDDS_PLUGIN_DIR' ) ) {
|
|
|
|
define( 'EDDS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( ! defined( 'EDDSTRIPE_PLUGIN_URL' ) ) {
|
|
|
|
define( 'EDDSTRIPE_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( ! defined( 'EDD_STRIPE_PLUGIN_FILE' ) ) {
|
|
|
|
define( 'EDD_STRIPE_PLUGIN_FILE', __FILE__ );
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( ! defined( 'EDD_STRIPE_VERSION' ) ) {
|
2023-03-29 18:20:17 +00:00
|
|
|
define( 'EDD_STRIPE_VERSION', '2.9.2.1' );
|
2022-11-27 15:03:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if ( ! defined( 'EDD_STRIPE_API_VERSION' ) ) {
|
|
|
|
define( 'EDD_STRIPE_API_VERSION', '2020-03-02' );
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( ! defined( 'EDD_STRIPE_PARTNER_ID' ) ) {
|
|
|
|
define( 'EDD_STRIPE_PARTNER_ID', 'pp_partner_DKh7NDe3Y5G8XG' );
|
|
|
|
}
|
|
|
|
|
|
|
|
include_once __DIR__ . '/includes/class-edd-stripe.php';
|
|
|
|
|
|
|
|
// Initial instantiation.
|
|
|
|
EDD_Stripe::instance();
|
|
|
|
}
|
|
|
|
add_action( 'plugins_loaded', 'edd_stripe_core_bootstrap' );
|
|
|
|
|