Beispiel #1
0
 /**
  * Map PayPal Website Payments Pro common config fields
  *
  * @param string $fieldName
  * @return string|null
  */
 protected function _mapWpukFieldset($fieldName)
 {
     $result = null;
     switch ($this->_methodCode) {
         case self::METHOD_PAYFLOW_BILLING_AGREEMENT:
         case self::METHOD_PAYFLOW_ORDERSTORED_AGREEMENT:
             $pathPrefix = 'paypal/wpuk';
             // Use PUMP credentials from Verisign for EC when Direct Payments are unavailable
             if (!$this->isMethodAvailable(Mage_Paypal_Model_Config::METHOD_WPP_PE_DIRECT)) {
                 $pathPrefix = 'payment/verisign';
             }
             switch ($fieldName) {
                 case 'partner':
                 case 'user':
                 case 'vendor':
                 case 'pwd':
                 case 'sandbox_flag':
                 case 'use_proxy':
                 case 'proxy_host':
                 case 'proxy_port':
                     $result = $pathPrefix . '/' . $fieldName;
                     break;
                 default:
             }
             break;
         default:
             $result = parent::_mapWpukFieldset($fieldName);
     }
     return $result;
 }