Exemplo n.º 1
0
 /**
  * Return form attributes
  *
  * @return array
  */
 protected function getFormAttributes()
 {
     $list = parent::getFormAttributes();
     if (\XLite\Module\CDev\Paypal\Main::isExpressCheckoutEnabled() && \XLite\Module\CDev\Paypal\Main::isInContextCheckoutAvailable() && \XLite\Module\CDev\Paypal\Main::getMerchantId()) {
         $list['data-paypal-id'] = \XLite\Module\CDev\Paypal\Main::getMerchantId();
     }
     return $list;
 }
Exemplo n.º 2
0
 /**
  * Get merchant id
  *
  * @return string
  */
 protected function getMerchantId()
 {
     return \XLite\Module\CDev\Paypal\Main::getMerchantId();
 }