public function init()
 {
     parent::init();
     $this->setTitle('Payment Gateway: Testing');
     $this->setDescription('PAYMENT_FORM_ADMIN_GATEWAY_TESTING_DESCRIPTION');
     // Decorators
     $this->loadDefaultDecorators();
     $this->getDecorator('Description')->setOption('escape', false);
 }
 public function init()
 {
     parent::init();
     $this->setTitle('Payment Gateway: 2Checkout');
     $description = $this->getTranslator()->translate('PAYMENT_FORM_ADMIN_GATEWAY_2CHECKOUT_DESCRIPTION');
     $description = vsprintf($description, array('https://www.2checkout.com/va/acct/list_usernames', 'https://www.2checkout.com/va/notifications/', 'http://' . $_SERVER['HTTP_HOST'] . Zend_Controller_Front::getInstance()->getRouter()->assemble(array('module' => 'payment', 'controller' => 'ipn', 'action' => '2Checkout'), 'default', true), 'https://www.2checkout.com/va/acct/detail_company_info', 'http://' . $_SERVER['HTTP_HOST'] . Zend_Controller_Front::getInstance()->getRouter()->assemble(array('module' => 'payment', 'controller' => 'subscription', 'action' => 'return'), 'default', true) . '?state=return', 'https://www.2checkout.com/2co/signup'));
     $this->setDescription($description);
     // Decorators
     $this->loadDefaultDecorators();
     $this->getDecorator('Description')->setOption('escape', false);
     // Elements
     $this->addElement('Text', 'username', array('label' => 'API Username', 'filters' => array(new Zend_Filter_StringTrim())));
     $this->addElement('Text', 'password', array('label' => 'API Password', 'filters' => array(new Zend_Filter_StringTrim())));
 }
 public function init()
 {
     parent::init();
     $this->setTitle('Payment Gateway: PayPal');
     $description = $this->getTranslator()->translate('PAYMENT_FORM_ADMIN_GATEWAY_PAYPAL_DESCRIPTION');
     $description = vsprintf($description, array('https://www.paypal.com/us/cgi-bin/webscr?cmd=_profile-api-signature', 'https://www.paypal.com/us/cgi-bin/webscr?cmd=_profile-ipn-notify', 'http://' . $_SERVER['HTTP_HOST'] . Zend_Controller_Front::getInstance()->getRouter()->assemble(array('module' => 'payment', 'controller' => 'ipn', 'action' => 'PayPal'), 'default', true)));
     $this->setDescription($description);
     // Decorators
     $this->loadDefaultDecorators();
     $this->getDecorator('Description')->setOption('escape', false);
     // Elements
     $this->addElement('Text', 'username', array('label' => 'API Username', 'filters' => array(new Zend_Filter_StringTrim())));
     $this->addElement('Text', 'password', array('label' => 'API Password', 'filters' => array(new Zend_Filter_StringTrim())));
     $this->addElement('Text', 'signature', array('label' => 'API Signature', 'filters' => array(new Zend_Filter_StringTrim())));
     /*
         $this->addElement('Textarea', 'certificate', array(
      'label' => 'API Certificate',
      'description' => 'You only need to fill in either Signature or ' .
          'Certificate, depending on what type of API account you create.',
         ));
     * 
     */
 }