示例#1
0
 /**
  * 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;
 }
示例#2
0
 /**
  * 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;
 }
示例#3
0
 /**
  * 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;
 }