Skip to content

Commit

Permalink
monero-gateway: fix AJAX status updates - use get_customer_id()
Browse files Browse the repository at this point in the history
  • Loading branch information
xiphon authored and serhack committed Jun 21, 2020
1 parent 954eb92 commit 90e058b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/class-monero-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ public static function get_payment_details_ajax() {
$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)
Expand Down

0 comments on commit 90e058b

Please sign in to comment.