Ejemplo n.º 1
0
 public static function GetConfigurationForm()
 {
     $ConfigurationForm = new DataForm();
     $ConfigurationForm->SetInlineHelp("You must set <b>viaPoll</b> = <b>Yes</b> under <i>Registrar &gt; Update registrar details</i> in your SIDN registrar panel");
     $ConfigurationForm->AppendField(new DataFormField("Login", FORM_FIELD_TYPE::TEXT, "Login", 1));
     $ConfigurationForm->AppendField(new DataFormField("Password", FORM_FIELD_TYPE::TEXT, "Passsword", 1));
     $ConfigurationForm->AppendField(new DataFormField("ServerHost", FORM_FIELD_TYPE::TEXT, "Server host", 1));
     $ConfigurationForm->AppendField(new DataFormField("ServerPort", FORM_FIELD_TYPE::TEXT, "Server port", 1));
     $ConfigurationForm->AppendField(new DataFormField("RegistrarCLID", FORM_FIELD_TYPE::TEXT, "Registrar EPP clID", 1));
     return $ConfigurationForm;
 }
Ejemplo n.º 2
0
 /**
  * You must construct and return DataForm object.
  * @return DataForm Form template object
  */
 public function GetConfigurationForm()
 {
     $Form = new DataForm();
     $Form->SetInlineHelp(sprintf("You must configure your Webmoney account before you can use this module. <br>" . "Log in to Merchant WebMoney Transfer and open configuration screen.<br>" . "&bull; Set <b>Result URL</b> to <b>%s</b><br>" . "&bull; Set <b>Success URL</b> to <b>%s</b><br>" . "&bull; Set <b>Fail URL</b> to <b>%s</b><br>" . "&bull; Set <b>Checksum method</b> to <b>MD5</b><br>" . "&bull; Make sure that <b>Secret key</b> in the form below matches the corresponding field in your Merhant configuration form.", CONFIG::$SITE_URL . "/ipn.php", CONFIG::$SITE_URL . "/payment_success.php", CONFIG::$SITE_URL . "/payment_failed.php"));
     $Form->AppendField(new DataFormField('Purse', FORM_FIELD_TYPE::TEXT, 'Purse ID', true));
     $Form->AppendField(new DataFormField('SecretKey', FORM_FIELD_TYPE::TEXT, 'Secret key', true));
     // TODO: in future versions
     //$Form->AppendField(new DataFormField('ChecksumAlgo', FORM_FIELD_TYPE::SELECT, 'Checksum algorithm', true, array('MD5' => 'MD5', 'WM' => 'SIGN')));
     //$Form->AppendField(new DataFormField('WMCertPath', FORM_FIELD_TYPE::TEXT, 'WebMoney certificate path', true));
     $Form->AppendField(new DataFormField('TestPaymentSuccess', FORM_FIELD_TYPE::CHECKBOX, 'Test payment success'));
     return $Form;
 }
 public static function GetConfigurationForm()
 {
     $ConfigurationForm = new DataForm();
     $ConfigurationForm->SetInlineHelp("");
     $methods = get_class_methods(__CLASS__);
     foreach ($methods as $method) {
         if ($method != '__construct' && $method != 'GetConfigurationForm') {
             $ConfigurationForm->AppendField(new DataFormField("{$method}URL", FORM_FIELD_TYPE::TEXT, "{$method} URL"));
         }
     }
     return $ConfigurationForm;
 }
Ejemplo n.º 4
0
		/**
		 * Must return a DataForm object that will be used to draw a configuration form for this module.
		 * @return DataForm object
		 */
		public function GetConfigurationForm()
		{
			$ConfigurationForm = new DataForm();
			
			$ConfigurationForm->SetInlineHelp(sprintf("You must configure your Setcom account before you can use this module. <br>Log in to SetCom, go to <b>Profile->Selling Preferences->Website Payment Preferences</b>, enable 'Auto-Redirect' and set 'Redirect URL' to <b>%s</b>", CONFIG::$SITE_URL."/ipn.php"));
			
			$ConfigurationForm->AppendField( new DataFormField("MerchantIdentifier", FORM_FIELD_TYPE::TEXT, "Merchant Identifier", 1));
			$ConfigurationForm->AppendField( new DataFormField("CurrencyAlphaCode", FORM_FIELD_TYPE::TEXT, "Currency", 1, null, null, null, "Available values is: USD, EUR, GBP, ZAR"));
			$ConfigurationForm->AppendField( new DataFormField("Username", FORM_FIELD_TYPE::TEXT , "Username", 1));
			$ConfigurationForm->AppendField( new DataFormField("Password", FORM_FIELD_TYPE::TEXT , "Password", 1));
			
			return $ConfigurationForm;
		}
 public static function GetConfigurationForm()
 {
     $ConfigurationForm = new DataForm();
     $ConfigurationForm->SetInlineHelp("");
     $ConfigurationForm->AppendField(new DataFormField("IsEnabled", FORM_FIELD_TYPE::CHECKBOX, "Enabled"));
     $ReflectionInterface = new ReflectionClass("IEventObserver");
     $events = $ReflectionInterface->getMethods();
     $ConfigurationForm->AppendField(new DataFormField("", FORM_FIELD_TYPE::SEPARATOR, "Request URL on following events"));
     foreach ($events as $event) {
         $name = substr($event->getName(), 2);
         $ConfigurationForm->AppendField(new DataFormField("{$event->getName()}NotifyURL", FORM_FIELD_TYPE::TEXT, "{$name} URL", false, array(), null, null, EVENT_TYPE::GetEventDescription($name)));
     }
     return $ConfigurationForm;
 }