Update class-monero-gateway.php

This commit is contained in:
SerHack 2019-03-03 13:51:48 +01:00 committed by GitHub
parent 5fa97a8282
commit 646bcd671a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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