diff --git a/monero/include/monero_payments.php b/monero/include/monero_payments.php index 8f1e030..92c8d04 100644 --- a/monero/include/monero_payments.php +++ b/monero/include/monero_payments.php @@ -356,16 +356,17 @@ 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"; } + + + $decoded_address = $this->cryptonote->decode_address($address); $pub_spendKey = $decoded_address['spendKey']; $pub_viewKey = $decoded_address['viewKey']; $integrated_addr = $this->cryptonote->integrated_addr_from_keys($pub_spendKey, $pub_viewKey, $payment_id); - $uri = "monero:$address?tx_payment_id=$payment_id"; - + $uri = urlencode("monero:".$address."?tx_amount=".$amount_xmr2."&tx_payment_id=".$payment_id); $this->verify_non_rpc($payment_id, $amount_xmr2, $order_id, $this->zero_confirm); - if($this->confirmed == false) { echo "