Changeset 2104798
- Timestamp:
- 06/12/2019 02:37:43 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wpmerchant/trunk/public/class-wpmerchant-public.php
r1713912 r2104798 756 756 // require all vendor libraries with this call 757 757 // need this because if you only include mailchimp the other required libraries won't be involved 758 //require_once plugin_dir_path( dirname(__FILE__) ) . 'vendor/autoload.php'; 759 require_once plugin_dir_path( dirname(__FILE__) ) . 'vendor/drewm/mailchimp-api/src/MailChimp.php'; 758 require(plugin_dir_path( dirname(__FILE__) ) . 'vendor/autoload.php'); 759 760 //require_once plugin_dir_path( dirname(__FILE__) ) . 'vendor/drewm/mailchimp-api/src/MailChimp.php'; 760 761 761 762 $EmailAPI = new \DrewM\MailChimp\MailChimp($email_list_processor_config['apiKey']); … … 958 959 959 960 // require all vendor libraries with this call 960 ////require_once(plugin_dir_path( dirname(__FILE__) ) . 'vendor/autoload.php');961 require(plugin_dir_path( dirname(__FILE__) ) . 'vendor/autoload.php'); 961 962 962 963 //If THERE ARE MULTIPLE PAYMENT PROCESSORS/Email Providers REQUIRE THESE FILES LIKE BELOW 963 if($payment_processor == 'stripe'){964 /*if($payment_processor == 'stripe'){ 964 965 require_once plugin_dir_path( dirname(__FILE__) ) . 'vendor/stripe/stripe-php/init.php'; 965 966 } 966 967 if($email_list_processor == 'mailchimp'){ 967 968 require_once plugin_dir_path( dirname(__FILE__) ) . 'vendor/drewm/mailchimp-api/src/MailChimp.php'; 968 } 969 }*/ 969 970 970 971 // Created WPL Payments table - in the activator file
Note: See TracChangeset
for help on using the changeset viewer.