/** * 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; }
public function getJSFiles() { $list = parent::getJSFiles(); $method = \XLite\Core\Database::getRepo('XLite\\Model\\Payment\\Method')->findOneBy(array('service_name' => 'Securesubmit')); if ($method && $method->isEnabled()) { $list[] = 'modules/Heartland/Securesubmit/payment.js'; $list[] = array('url' => 'https://api.heartlandportico.com/SecureSubmit.v1/token/2.0/securesubmit.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' => 'Velocity')); if ($method && $method->isEnabled()) { $list[] = 'modules/XC/Velocity/payment.js'; // Add JS file for dynamic credit card widget $list = array_merge($list, $this->getWidget(array(), '\\XLite\\View\\CreditCard')->getJSFiles()); } return $list; }