예제 #1
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('pspid')->setLabel('Your affiliation name in ePDQ');
     $form->addPassword('shain', array('class' => 'el-wide'))->setLabel("SHA IN Pass Phrase\n" . "can be found on page Configuration -> Technical Information -> Data and origin verification in your ePDQ account");
     $form->addPassword('shaout', array('class' => 'el-wide'))->setLabel("SHA OUT Pass Phrase\n" . "can be found on page Configuration -> Technical Information -> Transaction Feedback in your ePDQ account");
     $form->addAdvCheckbox('testing')->setLabel("Is it a Sandbox(Testing) Account?");
 }
예제 #2
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->setTitle('Dalpay (Checkout)');
     $form->addText('mer_id', array('size' => 20))->setLabel('Your Merchant ID#');
     $form->addText('pageid')->setLabel('The order page sub-account');
     $form->addPassword('password')->setLabel('Silent Post Password');
     $form->addPassword('notify_password')->setLabel('Server Notification Password');
 }
예제 #3
0
 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.");
 }
예제 #4
0
    protected function _initSetupForm(Am_Form_Setup $form)
    {
        $form->addText('login')->setLabel('API Login')->addRule('required');
        $form->addPassword('passwd')->setLabel('API Password')->addRule('required');
        $form->addText('pslid')->setLabel('PSLID (Service User)')->addRule('required');
        $form->addText('sun')->setLabel('Service User Number (SUN)')->addRule('required');
        $form->addText('lead_time')->setLabel('Lead time, days')->default = 12;
        for ($i = 1; $i <= 28; $i++) {
            $options[$i] = ___("%d-th day", $i);
        }
        $payment_day = $form->addMagicSelect('payment_day')->setLabel(___("Process Payment Day"))->loadOptions($options);
        $payment_day->default = 8;
        $payment_day->addRule('required');
        $form->addText('legal_name', array('class' => 'el-wide'))->setLabel(___("Legal Name\n" . "Please enter the legal name of your organisation " . "which will be included in the Direct Debit Guarantee statement"))->addRule('required');
        $form->addTextarea('legal_address', array('class' => 'el-wide', 'rows' => 5))->setLabel(___("Legal Address\n" . "Please enter the legal address of your organisation " . "which will be included in the Direct Debit Guarantee statement"))->addRule('required');
        $form->addAdvCheckbox('auddis', array('id' => 'auddis'))->setLabel("Log AUDDIS reports as Tickets in helpdesk\n" . "helpdesk module should be enabled");
        $form->addText('auddis_login', array('id' => 'auddis-login'))->setLabel('Username of user for AUDDIS reports');
        $form->addScript()->setScript(<<<CUT
(function(){
    \$('#auddis').change(function(){
        \$('#auddis-login').closest('.row').toggle(this.checked);
    }).change();
    \$('#auddis-login').autocomplete({
        minLength: 2,
        source: window.rootUrl + "/admin-users/autocomplete/"
    });
})()
CUT
);
    }
예제 #5
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText("installation_id", array('size' => 15))->setLabel(array("Your Metacharge installation ID", "refer to Merchant Extranet: Account Management > Installations"))->addRule('required');
     $form->addText("auth_username", array('size' => 15))->setLabel(array("Response HTTP Auth Username", "Metacharge PRN response authorisation username"))->addRule('required');
     $form->addPassword("auth_password", array('size' => 15))->setLabel(array("Response HTTP Auth Password", "Metacharge PRN response authorisation password"))->addRule('required');
     $form->addAdvCheckbox("testing")->setLabel("Test Mode Enabled");
 }
예제 #6
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addInteger('merchant_id', array('size' => 20))->setLabel('SWREG Account#');
     $form->addText('product_id', array('size' => 20))->setLabel('SWREG Product#');
     $form->addText('ip', array('size' => 10))->setLabel('SWREG Postback IP, default value is 64.37.103.135');
     $form->addPassword('pass', array('size' => 10))->setLabel('SWREG API Password');
 }
예제 #7
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('account', array('size' => 20, 'maxlength' => 16))->setLabel("ClickBank Account Nickname\n" . "your ClickBank username")->addRule('required');
     $form->addPassword('secret', array('size' => 20, 'maxlength' => 16))->setLabel("Secret Key\n" . "defined at clickbank.com -> login -> SETTINGS -> My Site -> Advanced Tools (edit)")->addRule('required');
     $form->addText('clerk_key', array('size' => 50))->setLabel("ClickBank Clerk API Key\n" . "defined at clickbank.com -> login -> SETTINGS -> My Account -> Clerk API Keys (edit)")->addRule('required');
     $form->addText('dev_key', array('size' => 50))->setLabel("Developer API Key\n" . "defined at clickbank.com -> login -> SETTINGS -> My Account -> Developer API Keys (edit)")->addRule('required');
 }
예제 #8
0
파일: selectel.php 프로젝트: grlf/eyedock
    function _initSetupForm(Am_Form_Setup $form)
    {
        $form->setTitle('Selectel');
        $form->addText('access_key', array('size' => 40))->setLabel('Your account login')->addRule('required');
        $form->addPassword('secret_key', array('size' => 40))->setLabel(array('Password for Cloud Storage', '(separate password then for Control Panel)'))->addRule('required');
        $form->addText('expire', array('size' => 5))->setLabel('Video link life-time, min');
        $form->setDefault('expire', 15);
        if ($this->isConfigured()) {
            try {
                $containers = $this->getDi()->cacheFunction->call(array($this->getConnector(), 'getContainersList'), array(), array(), $this->cacheLifetime);
                $containers = array('' => '== Please select public Container ==') + $containers;
            } catch (Exception $e) {
                $containers = array('' => 'Please create public container');
            }
            $form->addSelect('links_container', '', array('options' => array_combine($containers, $containers)))->setLabel(array('Container for links', 'aMember will create links in the following format: http://yourcloudstorageurl.com/CONTAINERNAME/uniquekey/filename.mp4'))->addRule('required');
        }
        $msg = <<<EOT
    Make sure that you store all your files in private containers.
    In order to provide an access to the files, create one free container, and specify it in plugin configuration.
    aMember will create symlinks to the files and put these symilnks to that public container. Links are one-time and time-limited.
    For example if you name your public container "download", end-user will see these links:
    https://88901.selcdn.ru/download/9365d4a676845f607e46e19038305ba0/filename.mp4

EOT;
        $form->addProlog(<<<CUT
<div class="info"><strong>{$msg}</strong></div>
CUT
);
    }
예제 #9
0
 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?");
 }
예제 #10
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('merchant_id')->setLabel('Merchant ID');
     $form->addText('pos_id')->setLabel('Shop ID (default: Merchant ID)');
     $form->addPassword('crc')->setLabel('CRC Key');
     $form->addAdvCheckbox('testing')->setLabel("Is it a Sandbox(Testing) Account?");
 }
예제 #11
0
파일: redsys.php 프로젝트: grlf/eyedock
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('code')->setLabel('Merchant Code (FUC)');
     $form->addText('terminal')->setLabel('Terminal');
     $form->addPassword('secret')->setLabel('Secret Key (CLAVE SECRETA)');
     $form->addAdvCheckbox('testing')->setLabel("Is it a Sandbox (Testing) Account?");
 }
예제 #12
0
 protected function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('PxPayUserId')->setLabel(array('Your PxPayUserId', ''))->addRule('required');
     $form->addText('PxPayKey', array('size' => 65))->setLabel(array('Your PxPayKey', ''))->addRule('required');
     $form->addText('PostUsername')->setLabel(array('Your PostUsername', ''))->addRule('required');
     $form->addPassword('PostPassword')->setLabel(array('Your PostPassword', ''))->addRule('required');
     $form->addAdvCheckbox('debugMode')->setLabel(array("Debug Mode Enable", "write all requests/responses to log"));
 }
예제 #13
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('login')->setLabel(array('Authorize.Net API Login ID', "The API login is different from your Authorize.net username\n" . "You can get at the same time as the Transaction Key"))->addRule('required');
     $form->addText('tkey')->setLabel(array('Transaction Key', "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 Interface:\n" . "1. Log into the Merchant Interface\n" . "2. Select Settings from the Main Menu\n" . "3. Click on Obtain Transaction Key in the Security section\n" . "4. Type in the answer to the secret question configured on setup\n" . "5. Click Submit"))->addRule('required');
     $form->addPassword('secret')->setLabel(array('Secret Word', "From authorize.net MD5 Hash menu\n" . "You have to create secret word"))->addRule('required');
     $form->addAdvCheckbox('testmode')->setLabel('Is Test Mode?');
     $form->addAdvCheckbox('devmode')->setLabel(array('Is Developer Account?', 'Select it if you are using developer API Login ID'));
 }
예제 #14
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addInteger('merchant_id', array('size' => 20))->setLabel('Your Merchant ID#');
     $form->addPassword('password')->setLabel(array('Postback Password', 'Should be the same as in your 1SC account'));
     $form->addText('key', array('size' => 30))->setLabel(array('API Key', '1SC -> My Account -> API Settings -> Your Current Merchant API Key'));
     $form->addAdvCheckbox('skip_amount_check')->setLabel(array('Skip Amount Check', 'Plugin will not check amount of incomming transaction. This option makes it possible to use coupons on 1SC'));
     $form->addText('api_resend', array('size' => 60))->setLabel(array('Resend API Requests', 'Specify url of third-party script that should receive API notifications as well'));
 }
예제 #15
0
파일: hipay.php 프로젝트: grlf/eyedock
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addInteger('account_id', array('size' => 20))->setLabel(array('Hipay Account Id', '(number)'));
     $form->addPassword('merchant_password', array('size' => 20))->setLabel(array('Merchant Password', '(set within your Hipay account)'));
     $form->addInteger('site_id', array('size' => 20))->setLabel(array('Hipay Site Id', '(number)'));
     $sel = $form->addSelect('order_category')->setLabel(array("The order/product category attached to the merchant site's category", "if there is no values - please enter Site Id and Save"));
     $sel->loadOptions($this->getOrderCategories());
     $form->addAdvCheckbox('testing')->setLabel('Test Mode');
 }
예제 #16
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addInteger('seller_id', array('size' => 20))->setLabel('2CO Account#');
     $form->setDefault('secret', $this->getDi()->app->generateRandomString(10));
     $form->addText('secret', array('size' => 30))->setLabel(array('2CO Secret Phrase', 'set it to the same value as configured in 2CO'));
     $form->addText('api_username')->setLabel('2CO API Username');
     $form->addPassword('api_password')->setLabel('2CO Password');
     $form->addSelect('lang', array(), array('options' => array('en' => 'English', 'zh' => 'Chinese', 'da' => 'Danish', 'nl' => 'Dutch', 'fr' => 'French', 'gr' => 'German', 'el' => 'Greek', 'it' => 'Italian', 'jp' => 'Japanese', 'no' => 'Norwegian', 'pt' => 'Portuguese', 'sl' => 'Slovenian', 'es_ib' => 'Spanish (es_ib)', 'es_la' => 'Spanish (es_la)', 'sv' => 'Swedish')))->setLabel('2CO Interface language');
 }
예제 #17
0
파일: mailchimp.php 프로젝트: grlf/eyedock
 function _initSetupForm(Am_Form_Setup $form)
 {
     $el = $form->addPassword('api_key', array('size' => 40))->setLabel('MailChimp API Key' . "\n<a target='_blank' href=''></a>");
     $el->addRule('required');
     $el->addRule('regex', 'API Key must be in form xxxxxxxxxxxx-xxx', '/^[a-zA-Z0-9]+-[a-zA-Z0-9]{2,4}$/');
     $form->addAdvCheckbox('disable_double_optin')->setLabel(array('Disable Double Opt-in', '<a href="http://kb.mailchimp.com/article/how-does-confirmed-optin-or-double-optin-work">http://kb.mailchimp.com/article/how-does-confirmed-optin-or-double-optin-work</a>'));
     $form->addAdvCheckbox('send_welcome')->setLabel(array('Send Welcome Message', 'Should Mailchimp send Welcome Email after opt-in'));
     $form->addAdvCheckbox('send_goodbye')->setLabel(array('Send Goodbye Message', ''));
     $form->addAdvCheckbox('ecommerce_tracking')->setLabel(array('Enable Ecommerce360 tracking', 'Read more: <a href="http://kb.mailchimp.com/article/what-is-ecommerce360-and-how-does-it-work-with-mailchimp/">on mailchimp site</a>'));
 }
예제 #18
0
파일: paypal.php 프로젝트: grlf/eyedock
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $plugin = $this->getId();
     $form->addText("business", array('size' => 40))->setLabel("Primary Paypal E-Mail Address");
     $form->addText("merchant_id", array('size' => 40))->setLabel(array("Your Merchant ID", "You can get it from Your Account -> Profile"));
     $form->addText("api_username", array('size' => 40))->setLabeL("API Username");
     $form->addPassword("api_password")->setLabel("API Password");
     $form->addText("api_signature", array('size' => 60))->setLabel("API Signature");
     $form->addAdvCheckbox("testing")->setLabel("Is it a Sandbox(Testing) Account?");
     $form->addTextarea("alt_business", array('cols' => 40, 'rows' => 3))->setLabel("Alternate PayPal account emails (one per line)");
     $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.");
     $form->addText("lc", array('size' => 4))->setLabel("PayPal Language Code\n" . "This field allows you to configure PayPal page language\n                that will be displayed when customer is redirected from your website\n                to PayPal for payment. By default, this value is empty, then PayPal\n                will automatically choose which language to use. Or, alternatively,\n                you can specify for example: en (for english language), or fr\n                (for french Language) and so on. In this case, PayPal will not choose\n                language automatically. <br />\n                Default value for this field is empty string");
     $form->addText("page_style")->setLabel("PayPal Page Style" . "\n" . "use the custom payment page\n                style from your account profile that has the specified name.\n                Default value for this field is empty string");
     $form->addAdvCheckbox("accept_pending_echeck")->setLabel("Recognize pending echeck payments as completed");
 }
예제 #19
0
 protected function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('login')->setLabel('API Login')->addRule('required');
     $form->addPassword('passwd')->setLabel('API Password')->addRule('required');
     $form->addText('pslid')->setLabel('PSLID (Service User)')->addRule('required');
     $form->addText('sun')->setLabel('Service User Number (SUN)')->addRule('required');
     $form->addText('lead_time')->setLabel('Lead time, days')->default = 12;
     for ($i = 1; $i <= 28; $i++) {
         $options[$i] = ___("%d-th day", $i);
     }
     $payment_day = $form->addMagicSelect('payment_day')->setLabel(___("Process Payment Day"))->loadOptions($options);
     $payment_day->default = 8;
     $payment_day->addRule('required');
     $form->addText('legal_name', array('class' => 'el-wide'))->setLabel(___("Legal Name\n" . "Please enter the legal name of your organisation " . "which will be included in the Direct Debit Guarantee statement"))->addRule('required');
     $form->addTextarea('legal_address', array('class' => 'el-wide', 'rows' => 5))->setLabel(___("Legal Address\n" . "Please enter the legal address of your organisation " . "which will be included in the Direct Debit Guarantee statement"))->addRule('required');
 }
예제 #20
0
파일: s3.php 프로젝트: grlf/eyedock
    function _initSetupForm(Am_Form_Setup $form)
    {
        $form->setTitle('Amazon S3');
        $form->addText('access_key', array('size' => 40))->setLabel('AWS Access Key')->addRule('required')->addRule('regex', 'must be alphanumeric', '/^[A-Z0-9]+$/');
        $form->addPassword('secret_key', array('size' => 40))->setLabel('AWS Secret Key')->addRule('required');
        $form->addSelect('region')->loadOptions($this->_regions)->setLabel('Amazon S3 Region');
        $form->addText('expire', array('size' => 5))->setLabel('Video link lifetime, min');
        $form->setDefault('expire', 15);
        $msg = ___('Your content on Amazon S3 should not be public.
            Please restrict public access to your files on Amazon S3 side
            and ensure you can not access it directly from Amazon S3.
            aMember use Access Key and Secret Key to generate links with
            authentication token for users to provide access them to your
            content on Amazon S3.');
        $form->addProlog(<<<CUT
<div class="info"><strong>{$msg}</strong></div>
CUT
);
    }
예제 #21
0
    function _initSetupForm(Am_Form_Setup $form)
    {
        $el = $form->addAdvRadio('api_type')->setLabel(___('Version of script'))->loadOptions(array('0' => ___('Downloaded on your own server'), '1' => ___('Hosted at Activecampaing\'s server')));
        $form->addScript()->setScript(<<<CUT
\$(document).ready(function() {
    function api_ch(val){
        \$("input[id^=api_key]").parent().parent().toggle(val == '1');
        \$("input[id^=api_user]").parent().parent().toggle(val == '0');
        \$("input[id^=api_password]").parent().parent().toggle(val == '0');    
    }
    \$("input[type=radio]").change(function(){ api_ch(\$(this).val()); }).change();
    api_ch(\$("input[type=radio]:checked").val());
});
CUT
);
        $form->addText('api_url', array('size' => 40))->setLabel('Activecampaign API url' . "\nit should be with http://");
        $form->addText('api_key', array('size' => 40))->setLabel('Activecampaign API Key');
        $form->addText('api_user', array('size' => 40))->setLabel('Activecampaign Admin Login');
        $form->addPassword('api_password', array('size' => 40))->setLabel('Activecampaign Admin Password');
        $form->addAdvCheckbox('debug')->setLabel(array('Debug logging', 'Record debug information in the log.'));
    }
예제 #22
0
파일: payflow.php 프로젝트: grlf/eyedock
 protected function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('vendor')->setLabel('Merchant Vendor Id (main username)');
     $form->addText('user')->setLabel('Merchant User Id (of the API user, or the same as Vendor Id)');
     $form->addPassword('pass')->setLabel('Merchant Password');
     $form->addText('partner')->setLabel('Partner');
     $form->setDefault('partner', 'PayPal');
     $form->addAdvCheckbox('advanced')->setLabel("Use PayPal Advanced\ncredit card info will be asked in iframe on your website");
     $form->addAdvCheckbox('testing')->setLabel('Test Mode');
 }
예제 #23
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('key')->setLabel("Application Key\n" . 'can be found in General Settings of the Application ' . 'inside of your Merchant Account');
     $form->addPassword("secret")->setLabel("Secret Key\n" . 'can be found in General Settings of the Application ' . 'inside of your Merchant Account');
     $form->addText("widget")->setLabel('Widget Code');
 }
예제 #24
0
 function _initSetupForm(Am_Form_Setup $form)
 {
     $el = $form->addPassword('api_key', array('size' => 40))->setLabel('GetResponse API Key' . "\n" . 'You can get your API Key <a target="_blank" href="https://app.getresponse.com/my_api_key.html">here</a>');
     $el->addRule('required');
 }
예제 #25
0
 protected function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('pkey', array('class' => 'el-wide'))->setLabel('Public Key')->addRule('required');
     $form->addPassword('skey', array('class' => 'el-wide'))->setLabel('Secret Key')->addRule('required');
 }
예제 #26
0
파일: payeer.php 프로젝트: grlf/eyedock
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('id')->setLabel("Shop Identifier\n" . 'the identifier of shop registered in Payeer ' . 'system on which will be made payment');
     $form->addPassword('key')->setLabel("Secret Key\n" . 'a confidential key from shop settings');
 }
예제 #27
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('co_id')->setLabel("Interkassa ID\n" . "The Merchant's unique identification number as provided by Interkassa");
     $form->addPassword('secret')->setLabel("Interkassa Secret Key\n" . "Secret key from your Interkassa account for the checksum calculation");
 }
예제 #28
0
파일: coinbase.php 프로젝트: grlf/eyedock
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText(self::API_KEY, array('size' => 40))->setLabel(array('API KEY', 'Get it from your coinbase account'));
     $form->addPassword(self::API_SECRET, array('size' => 40))->setLabel(array('API SECRET', 'Get it from your coinbase account'));
 }
 protected function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('user')->setLabel(array('Your username', 'Username assigned to merchant account'))->addRule('required');
     $form->addPassword('pass')->setLabel(array('Your password', 'Password for the specified username'))->addRule('required');
     $form->addAdvCheckbox('testMode')->setLabel(array('Test Mode', 'Test account data will be used'));
 }
예제 #30
0
파일: e-ghl.php 프로젝트: grlf/eyedock
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('ServiceID')->setLabel("Merchant Service ID\ngiven by eGHL");
     $form->addPassword('password')->setLabel('Merchant Password');
     $form->addAdvCheckbox('testing')->setLabel("Is it a Sandbox (Testing) Account?");
 }