Skip to content

Instantly share code, notes, and snippets.

@tribulant
Created May 7, 2015 20:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tribulant/659bebaa8a078dc4fe79 to your computer and use it in GitHub Desktop.
Save tribulant/659bebaa8a078dc4fe79 to your computer and use it in GitHub Desktop.
WordPress Shopping Cart: Redirect/Hosted Payment Gateway step 5
// WordPress Shopping Cart: Redirect/Hosted Payment Gateway step 5
// http://tribulant.com/docs/wordpress-shopping-cart-plugin/7190
<!-- Gateway Settings -->
<table class="form-table">
<tbody>
<tr>
<th><label for="gateway_title"><?php _e('Title', $this -> plugin_name); ?></label></th>
<td>
<input type="text" name="gateway_title" value="<?php echo wpco_get_option('gateway_title'); ?>" id="gateway_title" class="widefat" />
</td>
</tr>
<tr>
<th><label for="gateway_merchantid"><?php _e('Merchant ID', $this -> plugin_name); ?></label></th>
<td>
<input type="text" name="gateway_merchantid" value="<?php echo wpco_get_option('gateway_merchantid'); ?>" id="gateway_merchantid" class="widefat" />
</td>
</tr>
<tr>
<th><label for="gateway_mode_test"><?php _e('Mode', $this -> plugin_name); ?></label></th>
<td>
<label><input <?php echo (wpco_get_option('gateway_mode') == "test") ? 'checked="checked"' : ''; ?> type="radio" name="gateway_mode" value="test" id="gateway_mode_test" /> <?php _e('Test', $this -> plugin_name); ?></label>
<label><input <?php echo (wpco_get_option('gateway_mode') == "live") ? 'checked="checked"' : ''; ?> type="radio" name="gateway_mode" value="live" id="gateway_mode_live" /> <?php _e('Live', $this -> plugin_name); ?></label>
</td>
</tr>
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment