Exemplo n.º 1
0
 public function existsPaymentMethodConfigurationValue($key, $languageCode = null)
 {
     return $this->_paymentMethod->existsPaymentMethodConfigurationValue($key, $languageCode = null);
 }
 /**
  * This method returns the keys for accessing the map with the classes.
  * 
  * @param Customweb_Payment_Authorization_IPaymentMethod $method
  * @param unknown $authorizationMethodName
  * @return string[]
  */
 protected final function getKeys(Customweb_Payment_Authorization_IPaymentMethod $method, $authorizationMethodName)
 {
     $paymentMethodKey = strtolower($method->getPaymentMethodName());
     if ($authorizationMethodName === null) {
         $authorizationMethodName = '*';
     }
     $authorizationMethodNameKey = strtolower($authorizationMethodName);
     $processorKey = null;
     if ($method->existsPaymentMethodConfigurationValue('processor')) {
         $processorKey = $method->getPaymentMethodConfigurationValue('processor');
     }
     if ($processorKey === null) {
         $processorKey = $this->getDefaultOperator($method, $authorizationMethodName);
     }
     if ($processorKey === null) {
         $processorKey = '*';
     }
     $processorKey = strtolower($processorKey);
     return array('paymentMethodKey' => $paymentMethodKey, 'authorizationMethodNameKey' => $authorizationMethodNameKey, 'processorKey' => $processorKey);
 }