• Well… firstly, sorry if my questions are broadly and naive. I’m somewhat lost…
    I’m integrating Mercado Pago with WP-eCommerce, but I’m stuck with lack of documentations on how to integrate payment gateways.
    In the beginning of some payment gateway files (wpsc-merchants folder), there is a nzshpcrt_gateways[$num] array. What is it and where it comes from? What is $num?
    Also, how can I add custom translations to my gateway settings page?

    https://wordpress.org/plugins/wp-e-commerce/

Viewing 1 replies (of 1 total)
  • Hi,

    look at function wpsc_core_load_gateways() in wpsc-core/wpsc-functions.php to understand the gateway loading. BUT you do NOT want to put your custom gateway in the wpsc-merchants folder as it will very likely end up getting deleted during an upgrade. You want to develop it as a separate plugin. To do that you will want something like this:

    add_filter('wpsc_merchants_modules','my_gateway_add_gateway');
    function my_gateway_add_gateway ($nzshpcrt_gateways) {
        $nzshpcrt_gateways[] = array(
            'name'                   => 'My Gateway',
    // and so on

Viewing 1 replies (of 1 total)

The topic ‘Payment gateway integrations’ is closed to new replies.