From acd3ca568c24ca6617a21073e46e3fadb5845660 Mon Sep 17 00:00:00 2001 From: cryptochangements34 Date: Tue, 30 Jan 2018 19:38:40 -0600 Subject: [PATCH] fix payment id with QR codes should be tx_payment_id not payment_id --- 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 d3a1a1f..43e73a1 100644 --- a/monero/include/monero_payments.php +++ b/monero/include/monero_payments.php @@ -322,7 +322,7 @@ class Monero_Gateway extends WC_Payment_Gateway // If there isn't address (merchant missed that field!), $address will be the Monero address for donating :) $address = "44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A"; } - $uri = "monero:$address?amount=$amount?payment_id=$payment_id"; + $uri = "monero:$address?tx_payment_id=$payment_id"; if($this->zero_confirm){ $this->verify_zero_conf($payment_id, $amount, $order_id); @@ -401,7 +401,7 @@ class Monero_Gateway extends WC_Payment_Gateway $currency = $order->get_currency(); $amount_xmr2 = $this->changeto($amount, $currency, $payment_id); - $uri = "monero:$address?amount=$amount?payment_id=$payment_id"; + $uri = "monero:$address?tx_payment_id=$payment_id"; $array_integrated_address = $this->monero_daemon->make_integrated_address($payment_id); if (!isset($array_integrated_address)) { $this->log->add('Monero_Gateway', '[ERROR] Unable get integrated address');