/** * Get JS files * * @return array */ public function getJSFiles() { $list = parent::getJSFiles(); if ((!$this->isTokenValid() || \XLite\Module\CDev\Paypal\Model\Payment\Processor\ExpressCheckout::EC_TYPE_SHORTCUT !== \XLite\Core\Session::getInstance()->ec_type) && \XLite\Module\CDev\Paypal\Main::isExpressCheckoutEnabled() && \XLite\Module\CDev\Paypal\Main::isInContextCheckoutAvailable()) { $list[] = 'modules/CDev/Paypal/checkout/payment.js'; } return $list; }
/** * Get JS files * * @return array */ public function getJSFiles() { $list = parent::getJSFiles(); $method = \XLite\Core\Database::getRepo('XLite\\Model\\Payment\\Method')->findOneBy(array('service_name' => 'Stripe')); if ($method && $method->isEnabled()) { $list[] = 'modules/XC/Stripe/payment.js'; $list[] = array('url' => 'https://checkout.stripe.com/checkout.js'); } return $list; }
/** * Get CSS files * * @return array */ public function getCSSFiles() { $list = parent::getCSSFiles(); $method = \XLite\Core\Database::getRepo('XLite\\Model\\Payment\\Method')->findOneBy(array('service_name' => 'Velocity')); if ($method && $method->isEnabled()) { //Add CSS file for dynamic credit card widget $list = array_merge($list, $this->getWidget(array(), '\\XLite\\View\\CreditCard')->getCSSFiles()); } return $list; }
public function getCSSFiles() { $list = parent::getCSSFiles(); $list[] = 'modules/Heartland/Securesubmit/checkout.css'; return $list; }