From acfdc094da0dd9a2c8aa3e04048455d19efbeef8 Mon Sep 17 00:00:00 2001 From: Cactii1 <37589158+Cactii1@users.noreply.github.com> Date: Tue, 2 Mar 2021 18:20:19 +0100 Subject: [PATCH] Show Proper Address in QR Code Show integrated address in QR Code rather than base address. --- include/class-monero-gateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class-monero-gateway.php b/include/class-monero-gateway.php index 2187d4a..d4dbb44 100644 --- a/include/class-monero-gateway.php +++ b/include/class-monero-gateway.php @@ -552,7 +552,7 @@ class Monero_Gateway extends WC_Payment_Gateway } $amount_formatted = self::format_monero($amount_due); - $qrcode_uri = 'monero:'.$address.'?tx_amount='.$amount_formatted.'&tx_payment_id='.$payment_id; + $qrcode_uri = 'monero:'.$integrated_addr.'?tx_amount='.$amount_formatted.'&tx_payment_id='.$payment_id; $my_order_url = wc_get_endpoint_url('view-order', $order_id, wc_get_page_permalink('myaccount')); $payment_details = array(