globalpay_check_response

The Woocommerce GlobalPay globalpay check response function.

Description

globalpay_check_response(); 

Usage

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

Defined (1)

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

/woocommerce-globalpay.php  
  1. function globalpay_check_response() { 
  2. global $wp_query; 
  3. if (isset($wp_query->query['globalpay-transaction-response']) 
  4. && isset($_SESSION['globalpay_redirect_url'])) { 
  5.  
  6. $r = $_SESSION['globalpay_redirect_url']; 
  7. unset($_SESSION['globalpay_redirect_url']); 
  8. wp_redirect($r); 
  9. exit;