mirror of
https://git.wownero.com/wownero/wownerowp.git
synced 2024-08-15 01:03:16 +00:00
Update monero_payments.php
This commit is contained in:
parent
9f1ae715ac
commit
7f9fabbfa7
1 changed files with 2 additions and 2 deletions
|
@ -188,8 +188,8 @@ class Monero_Gateway extends WC_Payment_Gateway
|
||||||
$currency = $order->currency;
|
$currency = $order->currency;
|
||||||
$amount_xmr2 = $this->changeto($amount, $currency);
|
$amount_xmr2 = $this->changeto($amount, $currency);
|
||||||
$address = $this->address;
|
$address = $this->address;
|
||||||
|
$payment_id = bin2hex(openssl_random_pseudo_bytes(32));
|
||||||
$uri = "monero:$address?amount=$amount";
|
$uri = "monero:$address?amount=$amount?payment_id=$payment_id";
|
||||||
// Generate a QR code
|
// Generate a QR code
|
||||||
echo "<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'>
|
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>
|
<script src='https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue