die; } if (!isset($_POST['method']) || empty($_POST['method']) || $_POST['method'] == 'paypal') { if (in_array('administrator', $logged_user_role)) { $manage_payment .= '<form id="wdm-payment-form" class="ua_front_pay_form auction_settings_section_style" action="" method="POST">'; $manage_payment .= '<label for="wdm_paypal_id">' . __("PayPal Email Address", "wdm-ultimate-auction") . '</label> <input class="wdm_settings_input email" type="text" id="wdm_paypal_id" name="wdm_paypal_address" value="' . get_option('wdm_paypal_address') . '" /></br></br>'; $manage_payment .= '<label for="wdm_account_mode_id">' . __("PayPal Account Type", "wdm-ultimate-auction") . '</label> '; $options = array("Live", "Sandbox"); add_option('wdm_account_mode', 'Live'); foreach ($options as $option) { $checked = get_option('wdm_account_mode') == $option ? ' checked="checked" ' : ''; $manage_payment .= '<input ' . $checked . ' value="' . $option . '" name="wdm_account_mode" type="radio" /> ' . $option . ' '; } $manage_payment .= sprintf("<div class='ult-auc-settings-tip'>" . __("Select 'Sandbox' option when testing with your %s email address.", "wdm-ultimate-auction") . "</div>", "sandbox PayPal") . "<br/>"; $manage_payment .= paypal_auto_return_url_notes(); $html = ''; $manage_payment .= apply_filters('ua_front_payment_register_settings_paypal', $html, $cu_id, $logged_user_role); $manage_payment .= '<p><input type="submit" id="wdmua-submit" class="wdm-ua-submit" value="' . __('Save Changes', "wdm-ultimate-auction") . '" /></p>'; $manage_payment .= '</form>'; } else { $manage_payment .= '<form id="paypal-settings-form" class="auction_settings_section_style" method="post" action="">'; $manage_payment .= '<label for="user_paypal_email_id">' . __('PayPal Email', 'wdm-ultimate-auction') . '</label>'; $manage_payment .= '<input name="auction_user_paypal_email" required type="text" id="user_paypal_email_id" class="regular-text" value="' . get_user_meta($cu_id, 'auction_user_paypal_email', true) . '" />'; //$manage_payment .= paypal_auto_return_url_notes(); $manage_payment .= wp_nonce_field('ua_usr_pmt_wp_n_f', 'ua_wdm_usr_pmt_auc'); $manage_payment .= '<p><input type="submit" id="wdmua-submit" class="wdm-ua-submit" value="' . __('Save Changes', "wdm-ultimate-auction") . '" /></p>'; $manage_payment .= '</form>'; //require_once('paypal-validation.php'); } } elseif (isset($_POST['method']) && $_POST['method'] == 'wire_transfer') {
?> <table class="form-table"> <tr valign="top"> <th scope="row"> <label for="wdm_paypal_id"><?php _e("PayPal Email Address", "wdm-ultimate-auction"); ?> </label> </th> <td> <input class="wdm_settings_input email" type="text" id="wdm_paypal_id" name="wdm_paypal_address" value="<?php echo get_option('wdm_paypal_address'); ?> " /> <?php echo paypal_auto_return_url_notes(); ?> </td> </tr> <tr valign="top"> <th scope="row"> <label for="wdm_account_mode_id"><?php _e("PayPal Account Type", "wdm-ultimate-auction"); ?> </label> </th> <td> <?php $options = array("Live", "Sandbox"); add_option('wdm_account_mode', 'Live'); foreach ($options as $option) {