/** * Sets the parent gateway of the API object. * * The parent gateway object is used to fetch the API keys. * * @since 1.0.1.0 * @param MS_Gateway $gateway The parent gateway. */ public function set_gateway($gateway) { static $Stripe_Loaded = false; if (!$Stripe_Loaded) { require_once MS_Plugin::instance()->dir . '/lib/stripe-php/lib/Stripe.php'; do_action('ms_gateway_stripe_load_stripe_lib_after', $this); $Stripe_Loaded = true; } $this->_gateway = $gateway; $secret_key = $this->_gateway->get_secret_key(); M2_Stripe::setApiKey($secret_key); }
/** * @param boolean $verify */ public static function setVerifySslCerts($verify) { self::$verifySslCerts = $verify; }