Update monero_payments.php

This commit is contained in:
serhack 2017-07-15 13:32:34 +02:00 committed by GitHub
parent 9f1ae715ac
commit 7f9fabbfa7
1 changed files with 2 additions and 2 deletions

View File

@ -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 "<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'>
<script src='https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>