From 21df86e4b8eea305a882eb350d5cb688805d3f77 Mon Sep 17 00:00:00 2001 From: itssteven Date: Sat, 12 Jan 2019 08:57:50 +0000 Subject: [PATCH] Update class-monero-gateway.php --- include/class-monero-gateway.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/class-monero-gateway.php b/include/class-monero-gateway.php index 4ba94b0..03ae5ff 100644 --- a/include/class-monero-gateway.php +++ b/include/class-monero-gateway.php @@ -401,15 +401,15 @@ class Monero_Gateway extends WC_Payment_Gateway } } - protected static function check_payment_rpc($payment_id) + protected static function check_payment_rpc($subaddress) { $txs = array(); - $address_index = self::$monero_wallet_rpc->get_address_index($payment_id); + $address_index = self::$monero_wallet_rpc->get_address_index($subaddress); if(isset($address_index['index']['minor'])){ $address_index = $address_index['index']['minor']; } else { - self::$log->add('Monero_Gateway', '[ERROR] Couldn\'t get address index of subaddress: ' . $payment_id); + self::$log->add('Monero_Gateway', '[ERROR] Couldn\'t get address index of subaddress: ' . $subaddress); return $txs; } $payments = self::$monero_wallet_rpc->get_transfers(array( 'in' => true, 'pool' => true, 'subaddr_indices' => array($address_index)));