Beispiel #1
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('merchant_id')->setLabel('Your BrainTree Merchant ID');
     $form->addText('public_key')->setLabel('Your BrainTree Public Key');
     $form->addText('private_key')->setLabel('Your BrainTree Private Key');
     $form->addText('merchant_account_id')->setLabel('Your BrainTree Merchant Account ID');
     $form->addTextArea('client_side_key', array('rows' => 10, 'cols' => 40))->setLabel('Client-Side Encryption Key');
     $form->addText('test_merchant_id')->setLabel('Your BrainTree SANDBOX Merchant ID');
     $form->addText('test_public_key')->setLabel('Your BrainTree SANDBOX Public Key');
     $form->addText('test_private_key')->setLabel('Your BrainTree SANDBOX Private Key');
     $form->addText('test_merchant_account_id')->setLabel('Your BrainTree SANDBOX Merchant Account ID');
     $form->addTextArea('test_client_side_key', array('rows' => 10, 'cols' => 40))->setLabel('SANDBOX Client-Side Encryption Key');
     $form->addAdvCheckbox('sandbox')->setLabel('Sandbox testing');
     $form->addAdvCheckbox('multicurrency')->setLabel(array("Use different merchant account ID's", 'if you sell products in different currencies you need to setup merchant account ID for each product'));
 }