/** * 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; }
/** * Get merchant id * * @return string */ protected function getMerchantId() { return \XLite\Module\CDev\Paypal\Main::getMerchantId(); }