AAAAacademiac/www/administrator/components/com_chronoforms/form_actions/authorize_net/authorize_net.ctp 0000604 00000024577 15137476657 0031365 0 ustar 00 home
Header(array('fields' => 'Fields', 'settings' => 'Settings', 'help' => 'Help'), 'authorize_net_config_{n}'); ?>
tabStart('fields'); ?>
input('action_authorize_net_{n}_x_card_num_config', array('type' => 'text', 'label' => "Card's number field", 'class' => 'medium_input', 'value' => '')); ?>
input('action_authorize_net_{n}_x_exp_date_m_config', array('type' => 'text', 'label' => "Card's expiry month field", 'class' => 'medium_input', 'value' => '')); ?>
input('action_authorize_net_{n}_x_exp_date_y_config', array('type' => 'text', 'label' => "Card's expiry year field", 'class' => 'medium_input', 'value' => '')); ?>
input('action_authorize_net_{n}_x_description_config', array('type' => 'text', 'label' => "Transaction description field", 'class' => 'medium_input', 'value' => '')); ?>
input('action_authorize_net_{n}_x_amount_config', array('type' => 'text', 'label' => "Customer's amount field", 'class' => 'medium_input', 'value' => '')); ?>
input('action_authorize_net_{n}_x_first_name_config', array('type' => 'text', 'label' => "Customer's first name field", 'class' => 'medium_input', 'value' => '')); ?>
input('action_authorize_net_{n}_x_last_name_config', array('type' => 'text', 'label' => "Customer's last name field", 'class' => 'medium_input', 'value' => '')); ?>
input('action_authorize_net_{n}_x_address_config', array('type' => 'text', 'label' => "Customer's address field", 'class' => 'medium_input', 'value' => '')); ?>
input('action_authorize_net_{n}_x_city_config', array('type' => 'text', 'label' => "Customer's city field", 'class' => 'medium_input', 'value' => '')); ?>
input('action_authorize_net_{n}_x_state_config', array('type' => 'text', 'label' => "Customer's state field", 'class' => 'medium_input', 'value' => '')); ?>
input('action_authorize_net_{n}_x_zip_config', array('type' => 'text', 'label' => "Customer's zip code field", 'class' => 'medium_input', 'value' => '')); ?>
input('action_authorize_net_{n}_x_country_config', array('type' => 'text', 'label' => "Customer's country field", 'class' => 'medium_input', 'value' => '')); ?>
input('action_authorize_net_{n}_x_phone_config', array('type' => 'text', 'label' => "Customer's phone field", 'class' => 'medium_input', 'value' => '')); ?>
input('action_authorize_net_{n}_x_email_config', array('type' => 'text', 'label' => "Customer's email field", 'class' => 'medium_input', 'value' => '')); ?>
input('action_authorize_net_{n}_x_invoice_num_config', array('type' => 'text', 'label' => 'Invoice # field', 'class' => 'medium_input', 'value' => '')); ?>
input('action_authorize_net_{n}_content1_config', array('type' => 'textarea', 'label' => 'Extra fields', 'rows' => 5, 'cols' => 50)); ?>
tabEnd(); ?>
tabStart('settings'); ?>
input('action_authorize_net_{n}_loginid_config', array('type' => 'text', 'label' => "API Login ID", 'class' => 'medium_input', 'value' => '')); ?>
input('action_authorize_net_{n}_transkey_config', array('type' => 'text', 'label' => "Transaction Key", 'class' => 'medium_input', 'value' => '')); ?>
input('action_authorize_net_{n}_debugging_config', array('type' => 'select', 'label' => 'Debugging', 'options' => array(0 => 'No', 1 => 'Yes'))); ?>
input('action_authorize_net_{n}_testing_config', array('type' => 'select', 'label' => 'Testing', 'options' => array(0 => 'No', 1 => 'Yes'))); ?>
input('action_authorize_net_{n}_auto_add_error_config', array('type' => 'select', 'label' => 'Auto Set Error', 'options' => array(0 => 'No', 1 => 'Yes'))); ?>
input('action_authorize_net_{n}_error_retires_config', array('type' => 'text', 'label' => "Error Retires", 'class' => 'small_input', 'value' => '')); ?>
tabEnd(); ?>
tabStart('help'); ?>
- Map your form fields names to the fields required by Authorize.net, no spaces should be in the fields name.
- You may map extra fields through the "Extra fields" box, use multi line format, each line should be in this form: authorize.net_field_name=form_field_name
- Enter your authorize.net account settings.
- If you enable the debugging then you will see the Authorize.net response in the same event page.
- Map your form fields names to the fields required by Authorize.net, no spaces should be in the fields name.
- Some response data will be stored after the response is received under the $form->data['_PLUGINS_']['authorize_net'].
- You can add a "Custom code" action after this one and use this code to check/user the response data stored : print_r2($form->data['_PLUGINS_']['authorize_net']);
tabEnd(); ?>