/**
  * Check - payment method is configured or not
  *
  * @param \XLite\Model\Payment\Method $method Payment method
  *
  * @return boolean
  */
 public function isConfigured(\XLite\Model\Payment\Method $method)
 {
     return \XLite\Model\Payment\Base\Processor::isConfigured($method) && $this->api->isConfigured();
 }
Beispiel #2
0
 /**
  * Is forced Merchant API for Paypal Express
  * https://developer.paypal.com/docs/classic/api/#merchant
  *
  * @param \XLite\Model\Payment\Base\Processor $processor Payment processor
  *
  * @return boolean
  */
 protected function isForceMerchantAPI($processor)
 {
     $parentMethod = $processor->getParentMethod();
     return !$processor->isForcedEnabled($this) && ('email' == parent::getSetting('api_type') || 'paypal' == parent::getSetting('api_solution') || $parentMethod && !$processor->isConfigured($parentMethod));
 }