From 7f9fabbfa74ed7333686e7caf8c0495494dca45a Mon Sep 17 00:00:00 2001 From: serhack Date: Sat, 15 Jul 2017 13:32:34 +0200 Subject: [PATCH] Update monero_payments.php --- monero/include/monero_payments.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monero/include/monero_payments.php b/monero/include/monero_payments.php index 511b0df..bebaa90 100644 --- a/monero/include/monero_payments.php +++ b/monero/include/monero_payments.php @@ -188,8 +188,8 @@ class Monero_Gateway extends WC_Payment_Gateway $currency = $order->currency; $amount_xmr2 = $this->changeto($amount, $currency); $address = $this->address; - - $uri = "monero:$address?amount=$amount"; + $payment_id = bin2hex(openssl_random_pseudo_bytes(32)); + $uri = "monero:$address?amount=$amount?payment_id=$payment_id"; // Generate a QR code echo "