make a little more verbose
This commit is contained in:
		
							parent
							
								
									309b141477
								
							
						
					
					
						commit
						ad1edf568c
					
				@ -578,10 +578,10 @@ class Monero_Gateway extends WC_Payment_Gateway
 | 
				
			|||||||
        $order = wc_get_order($order_id);
 | 
					        $order = wc_get_order($order_id);
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        if($this->is_virtual_in_cart($order_id) == true){
 | 
					        if($this->is_virtual_in_cart($order_id) == true){
 | 
				
			||||||
            $order->update_status('completed', __('Payment has been received', 'monero_gateway'));
 | 
					            $order->update_status('completed', __('Payment has been received' . $payment_id, 'monero_gateway'));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        else{
 | 
					        else{
 | 
				
			||||||
            $order->update_status('processing', __('Payment has been received', 'monero_gateway'));
 | 
					            $order->update_status('processing', __('Payment has been received' . $payment_id, 'monero_gateway')); // Show payment id used for order
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        global $wpdb;
 | 
					        global $wpdb;
 | 
				
			||||||
        $wpdb->query("DROP TABLE $payment_id"); // Drop the table from database after payment has been confirmed as it is no longer needed
 | 
					        $wpdb->query("DROP TABLE $payment_id"); // Drop the table from database after payment has been confirmed as it is no longer needed
 | 
				
			||||||
@ -652,6 +652,10 @@ class Monero_Gateway extends WC_Payment_Gateway
 | 
				
			|||||||
        
 | 
					        
 | 
				
			||||||
        if($block_difference != 0)
 | 
					        if($block_difference != 0)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 | 
					            if($block_difference > 2){
 | 
				
			||||||
 | 
					                $this->log->add('[WARNING] Block difference is greater than 2');
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            
 | 
				
			||||||
            $txs_from_block_2 = $tools->get_txs_from_block($bc_height - 1);
 | 
					            $txs_from_block_2 = $tools->get_txs_from_block($bc_height - 1);
 | 
				
			||||||
            $tx_count_2 = count($txs_from_block_2) - 1;
 | 
					            $tx_count_2 = count($txs_from_block_2) - 1;
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user