本文整理汇总了PHP中Am_Form_Setup类的典型用法代码示例。如果您正苦于以下问题:PHP Am_Form_Setup类的具体用法?PHP Am_Form_Setup怎么用?PHP Am_Form_Setup使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Am_Form_Setup类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addText('merchant', array('size' => 20))->setLabel('PayPoint Username');
$form->addText('remote_password', array('size' => 30))->setLabel(array('Remote Password', 'Please see readme below'));
$form->addText('digestkey', array('size' => 30))->setLabel(array('Digest Key', 'Created from within the PayPoint.net Merchant Extranet'));
$form->addAdvCheckbox('testing')->setLabel('Test Mode');
}
示例2: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addText('site_id')->setLabel(array('Site ID', 'Identifier of the merchant site'));
$form->addText('api_key')->setLabel(array('API Key', 'This keyset is available under My Profile in the Allopass merchant account.'));
$form->addText('api_secret_key')->setLabel(array('API Secret Key', 'This keyset is available under My Profile in the Allopass merchant account.'));
$form->addAdvCheckbox('testing')->setLabel('Test Mode');
}
示例3: _initSetupForm
function _initSetupForm(Am_Form_Setup $form)
{
$form->addText('merchant_id')->setLabel('Merchant ID');
$form->addText('security_key')->setLabel('Private Security Key');
$form->addSelect('language', '', array('options' => array('ru' => 'Русский', 'en' => 'English')))->setLabel('Interface language');
$form->addAdvCheckbox('cc_form')->setLabel('Send User to CC form directly');
}
示例4: _initSetupForm
protected function _initSetupForm(Am_Form_Setup $form)
{
$form->addText('destination_id', 'size=60')->setLabel('Dwolla Account Number', 'Dwolla account ID receiving the funds. Format : XXX-XXX-XXXX.');
$form->addText('app_key', 'size=60')->setLabel('Application Key', 'The key used for the Dwolla API');
$form->addText('app_secret', 'size=60')->setLabel('Application Secret', 'The secret code used for the Dwolla API');
$form->addAdvCheckbox('testing')->setLabel('Test Mode');
}
示例5: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addText('web_id', array('size' => 20, 'maxlength' => 20))->setLabel('2000Charge.com website ID')->addRule('required');
$form->addText('account')->setLabel('Your client account login id');
$form->addText('pwd')->setLabel('Your client account login password');
$form->addSelect('payment_option', '', array('options' => $this->payment_options))->setLabel(array('Payment Option', 'Display Only Specified Payment Options'));
}
示例6: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addText('account_id')->setLabel(array('Merchant Account Id'));
$form->addText('secret')->setLabel(array('Merchant Secret Key'));
$form->addText('java_path')->setLabel(array('Unix path to java binary', 'for ex. java or /usr/bin/java'));
$form->setDefault('java_path', 'java');
}
示例7: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addInteger('merchant_id', array('size' => 20, 'maxlength' => 20))->setLabel('Your Verotel Merchant ID#');
$form->addInteger('site_id')->setLabel('Verotel Site Id');
$form->addAdvCheckbox('dynamic_pricing')->setLabel(array('Allow Dynamic Pricing', 'this option does not allow to use recurring'));
$form->addText('secret')->setLabel(array('Private key', 'required for dynamic pricing only'));
}
示例8: _afterInitSetupForm
function _afterInitSetupForm(Am_Form_Setup $form)
{
$url = Am_Controller::escape(REL_ROOT_URL) . '/default/admin-content/p/newsletter/index';
$text = ___("Once the plugin configuration is finished on this page, do not forget to add\n" . "a record on %saMember CP -> Protect Content -> Newsletters%s page", '<a href="' . $url . '" target="_blank" class="link">', '</a>');
$form->addProlog(<<<CUT
<div class="warning_box">
{$text}
</div>
CUT
);
if ($this->canGetLists()) {
$lists = array();
try {
foreach ($this->getLists() as $k => $v) {
$lists[$k] = $v['title'];
}
} catch (Exception $e) {
//just log
$this->getDi()->errorLogTable->logException($e);
}
$gr = $form->addGroup()->setLabel(___('Unsubscribe customer from selected newsletter threads'));
$gr->addSelect('unsubscribe_after_signup')->loadOptions(array('' => ___('Please Select'), self::UNSUBSCRIBE_AFTER_ADDED => ___('After the user has been added'), self::UNSUBSCRIBE_AFTER_PAID => ___('After first payment has been completed')));
$gr->addStatic()->setContent('<br><br>');
$gr->addMagicSelect('unsubscribe_after_signup_lists')->loadOptions($lists);
}
parent::_afterInitSetupForm($form);
}
示例9: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addText("merchant_id")->setLabel(array('Merchant ID', 'Merchant unique identification number as provided by Gate2Shop'));
$form->addText("merchant_site_id")->setLabel(array('Merchant Site ID', 'Merchant web site unique identification number as provided by Gate2Shop'));
$form->addText("secret_key", array('size' => 40))->setLabel(array('Secret Key'));
$form->addAdvCheckbox("testing")->setLabel("Test Mode Enabled");
}
示例10: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$plugin = $this->getId();
$form->addText("business", array('size' => 40))->setLabel("Your PayPal Email Address");
$form->addTextarea("alt_business", array('cols' => 40, 'rows' => 3))->setLabel("Other Paypal Email addresses that you have registered in WSO PRO");
$form->addAdvCheckbox("dont_verify")->setLabel("Disable IPN verification\n" . "<b>Usually you DO NOT NEED to enable this option.</b>\n However, on some webhostings PHP scripts are not allowed to contact external\n web sites. It breaks functionality of the PayPal payment integration plugin,\n and aMember Pro then is unable to contact PayPal to verify that incoming\n IPN post is genuine. In this case, AS TEMPORARY SOLUTION, you can enable\n this option to don't contact PayPal server for verification. However,\n in this case \"hackers\" can signup on your site without actual payment.\n So if you have enabled this option, contact your webhost and ask them to\n open outgoing connections to www.paypal.com port 80 ASAP, then disable\n this option to make your site secure again.");
}
示例11: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addText("api_key", array('class' => 'el-wide'))->setLabel('Merchant API Key');
$form->addPassword("api_secret", array('class' => 'el-wide'))->setLabel('Merchant API Secret');
$form->addAdvCheckbox("testing")->setLabel("Is it a Sandbox (Testing) Account?");
$form->addAdvCheckbox("dont_verify")->setLabel("Disable IPN verification\n" . "<b>Usually you DO NOT NEED to enable this option.</b>\n However, on some webhostings PHP scripts are not allowed to contact external\n web sites. It breaks functionality of the Xrefs payment integration plugin,\n and aMember Pro then is unable to contact Xrefs to verify that incoming\n IPN post is genuine. In this case, AS TEMPORARY SOLUTION, you can enable\n this option to don't contact Xrefs server for verification. However,\n in this case \"hackers\" can signup on your site without actual payment.\n So if you have enabled this option, contact your webhost and ask them to\n open outgoing connections to www.xfers.io port 80 ASAP, then disable\n this option to make your site secure again.");
}
示例12: _initSetupForm
function _initSetupForm(Am_Form_Setup $form)
{
$form->addText('siteid', array('size' => 20, 'maxlength' => 20))->setLabel("Site-ID: will be assigned by INET-CASH after you create your shop");
$form->addSelect('lang', array(), array('options' => array('en' => 'English', 'de' => 'Deutsch', 'es' => 'Español', 'pl' => 'język polski', 'fr' => 'français')))->setLabel("Language");
$form->addSelect('zahlart', array(), array('options' => array('all' => 'All available types', 'cc' => 'Credit Card', 'dd' => 'Direct Debit, only Germany/Austria', 'db' => 'Sofortuberweisung', 'dp' => 'Payment in advance')))->setLabel("Payment method");
$form->addText('owntxt', array('size' => '18', 'maxlength' => 18))->setLabel("Your own text will be shown on the top of the payment form.");
}
示例13: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addInteger('pos_id', array('size' => 20))->setLabel('Id punktu płatności (pos_id)');
$form->addText('key1', array('size' => 32, 'maxlength' => '32'))->setLabel('Klucz MD5');
$form->addText('key2', array('size' => 32, 'maxlength' => '32'))->setLabel('Drugi klucz MD5');
$form->addText('pos_auth_key', array('size' => 20, 'maxlength' => '32'))->setLabel('Parametr pos_auth_key');
}
示例14: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addText("login")->setLabel(array('API Login ID', '
can be obtained from the same page as Transaction Key (see below)'));
$form->addText("tkey")->setLabel(array('Transaction Key', "<p>The transaction key is generated by the system\n and can be obtained from Merchant Interface.\n To obtain the transaction key from the Merchant\n Interface</p>\n<ol>\n<li> Log into the Merchant Interface\n<li> Select Settings from the Main Menu\n<li> Click on Obtain Transaction Key in the Security section\n<li> Type in the answer to the secret question configured on setup\n<li> Click Submit\n</ol>\n"));
$form->addAdvCheckbox("test_mode")->setLabel("Test Mode Enabled");
}
示例15: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addText('merchant')->setLabel('Merchant Name');
$form->addText('MerchantGUID')->setLabel('API Merchant ID');
$form->addPassword('MerchantPassword')->setLabel('API Merchant Password');
$form->addAdvCheckbox('testing')->setLabel("Is it a Sandbox(Testing) Account?");
}