Skip to content

Instantly share code, notes, and snippets.

@tribulant
Created May 7, 2015 20:01
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/9c6e9ef53619c2317ea3 to your computer and use it in GitHub Desktop.
Save tribulant/9c6e9ef53619c2317ea3 to your computer and use it in GitHub Desktop.
WordPress Shopping Cart: Redirect/Hosted Payment Gateway step 2
// WordPress Shopping Cart: Redirect/Hosted Payment Gateway step 2
// http://tribulant.com/docs/wordpress-shopping-cart-plugin/7190
function gateway_extensions_list($extensions = null) {
$extensions['gateway'] = array(
'name' => __('Gateway', 'checkout-gateway'),
'link' => "http://domain.com/gateway/",
'image' => plugins_url() . '/gateway/icon.jpg',
'description' => __("Gateway which sends customers through to a secure payment page.", 'checkout-gateway'),
'slug' => 'gateway',
'plugin_name' => 'checkout-gateway',
'plugin_file' => 'gateway.php',
);
return $extensions;
}
add_filter('wpco_extensions_list', 'gateway_extensions_list', 10, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment