wcmoip_legacy_ipn

Adds support to legacy IPN.

Description

wcmoip_legacy_ipn(); 

Usage

  1. if ( !function_exists( 'wcmoip_legacy_ipn' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-moip/woocommerce-moip.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wcmoip_legacy_ipn(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/woocommerce-moip.php  
  1. function wcmoip_legacy_ipn() { 
  2. if ( isset( $_POST['cod_moip'] ) && ! isset( $_GET['wc-api'] ) ) { 
  3. global $woocommerce; 
  4.  
  5. $woocommerce->payment_gateways(); 
  6.