AAAAhome/academiac/www/administrator/components/com_chronoforms/form_actions/paypal_pro/paypal_pro.ctp 0000604 00000024402 15146755172 0030173 0 ustar 00
Header(array('fields' => 'Fields', 'settings' => 'Settings', 'help' => 'Help'), 'paypal_pro_config_{n}'); ?>
tabStart('fields'); ?>
input('action_paypal_pro_{n}_PAYMENTACTION_config', array('type' => 'hidden')); ?>
input('action_paypal_pro_{n}_AMT_config', array('type' => 'text', 'label' => "Amount Field", 'class' => 'medium_input')); ?>
input('action_paypal_pro_{n}_CREDITCARDTYPE_config', array('type' => 'text', 'label' => "Credit Card type Field", 'class' => 'medium_input')); ?>
input('action_paypal_pro_{n}_ACCT_config', array('type' => 'text', 'label' => "Credit Card Number Field", 'class' => 'medium_input')); ?>
input('action_paypal_pro_{n}_EXPDATE_m_config', array('type' => 'text', 'label' => "Credit Card Expiry month field", 'class' => 'medium_input')); ?>
input('action_paypal_pro_{n}_EXPDATE_y_config', array('type' => 'text', 'label' => "Credit Card Expiry year field", 'class' => 'medium_input')); ?>
input('action_paypal_pro_{n}_CVV2_config', array('type' => 'text', 'label' => "CVV2 field", 'class' => 'medium_input')); ?>
input('action_paypal_pro_{n}_FIRSTNAME_config', array('type' => 'text', 'label' => "First Name Field", 'class' => 'medium_input')); ?>
input('action_paypal_pro_{n}_LASTNAME_config', array('type' => 'text', 'label' => "Last Name Field", 'class' => 'medium_input')); ?>
input('action_paypal_pro_{n}_STREET_config', array('type' => 'text', 'label' => "Street Field", 'class' => 'medium_input')); ?>
input('action_paypal_pro_{n}_CITY_config', array('type' => 'text', 'label' => "City Field", 'class' => 'medium_input')); ?>
input('action_paypal_pro_{n}_STATE_config', array('type' => 'text', 'label' => "State Field", 'class' => 'medium_input')); ?>
input('action_paypal_pro_{n}_ZIP_config', array('type' => 'text', 'label' => "Zip Field", 'class' => 'medium_input')); ?>
input('action_paypal_pro_{n}_COUNTRYCODE_config', array('type' => 'text', 'label' => "Country Code Field", 'class' => 'medium_input', 'smalldesc' => "2 Characters value, e.g: US, CA, UK..etc")); ?>
input('action_paypal_pro_{n}_CURRENCYCODE_config', array('type' => 'text', 'label' => "Currency Code Field", 'class' => 'medium_input', 'smalldesc' => 'e.g: USD, GBP, EUR..etc')); ?>
input('action_paypal_pro_{n}_content1_config', array('type' => 'textarea', 'label' => 'Extra fields', 'rows' => 5, 'cols' => 50)); ?>
tabEnd(); ?>
tabStart('settings'); ?>
input('action_paypal_pro_{n}_API_USERNAME_config', array('type' => 'text', 'label' => "API Username", 'class' => 'medium_input', 'value' => '')); ?>
input('action_paypal_pro_{n}_API_PASSWORD_config', array('type' => 'text', 'label' => "API Password", 'class' => 'medium_input', 'value' => '')); ?>
input('action_paypal_pro_{n}_API_SIGNATURE_config', array('type' => 'text', 'label' => "API Signature", 'class' => 'medium_input', 'value' => '')); ?>
input('action_paypal_pro_{n}_USE_PROXY_config', array('type' => 'select', 'label' => 'Use Proxy ?', 'options' => array(0 => 'No', 1 => 'Yes'))); ?>
input('action_paypal_pro_{n}_PROXY_HOST_config', array('type' => 'text', 'label' => "Proxy host IP", 'class' => 'small_input', 'value' => '')); ?>
input('action_paypal_pro_{n}_PROXY_PORT_config', array('type' => 'text', 'label' => "Proxy Port", 'class' => 'medium_input', 'value' => '')); ?>
input('action_paypal_pro_{n}_debugging_config', array('type' => 'select', 'label' => 'Debugging', 'options' => array(0 => 'No', 1 => 'Yes'))); ?>
input('action_paypal_pro_{n}_testing_config', array('type' => 'select', 'label' => 'Testing', 'options' => array(0 => 'No', 1 => 'Yes'))); ?>
tabEnd(); ?>
tabStart('help'); ?>
- This plugin will work only with web payments pro enabled Paypal account, this is available to Paypal users at the US, UK and Canada only at the moment according to Paypal.
- Map your form fields names to the fields required by Paypal Pro, 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: paypal_field_name=form_field_name
- Enter your Paypal pro api account settings.
- If you enable the debugging then you will see the Paypal Pro response in the same event page.
- Some response data will be stored after the response is received under the $form->data['_PLUGINS_']['paypal_pro'].
- 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_']['paypal_pro']);
tabEnd(); ?>