Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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