monero-gateway: fix AJAX status updates - use get_customer_id()

This commit is contained in:
xiphon 2020-06-20 23:55:13 +00:00 committed by SerHack
parent 954eb92785
commit 90e058baeb
1 changed files with 1 additions and 1 deletions

View File

@ -595,7 +595,7 @@ class Monero_Gateway extends WC_Payment_Gateway
$order_id = preg_replace("/[^0-9]+/", "", $_GET['order_id']);
$order = wc_get_order( $order_id );
if($order->user_id() != $user->ID)
if($order->get_customer_id() != $user->ID)
self::ajax_output(array('error' => '[ERROR] Order does not belong to this user'));
if($order->get_payment_method() != self::$_id)