globalpay_check_transaction_on_user_return

The Woocommerce GlobalPay globalpay check transaction on user return function.

Description

globalpay_check_transaction_on_user_return(); 

Usage

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

Defined (1)

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

/woocommerce-globalpay.php  
  1. function globalpay_check_transaction_on_user_return () { 
  2. // Ensure that $_SESSION['globalpay_redirect_url'] is NOT set as this shows 
  3. // that the function globalpay_check_response() has been previously called. 
  4. if (isset($_SESSION['globalpay_order_id']) 
  5. && !isset($_SESSION['globalpay_redirect_url'])) { 
  6.  
  7. $wc_globalpay = new WC_GlobalPay(); 
  8. $wc_globalpay->check_transaction_on_user_return();