|
|
@ -235,15 +235,16 @@ function hush_gateway_init() { |
|
|
|
// Get expected amount to be received |
|
|
|
$hushAmt = get_post_meta($order_id, '_hush_expected', true); |
|
|
|
|
|
|
|
// Generate HUSH URI |
|
|
|
// Generate HUSH URIs |
|
|
|
$hushURI = "hush:".$hushAddress."?amt=".$hushAmt; |
|
|
|
$hushQRURI = "hush://".$hushAddress."?amt=".$hushAmt; |
|
|
|
|
|
|
|
// Generate QR Code |
|
|
|
$timestamp = $_SERVER['REQUEST_TIME']; |
|
|
|
$upload_dir = wp_upload_dir(); |
|
|
|
$upload_dir = $upload_dir['basedir'] . '/' . "hush/"; |
|
|
|
if(!file_exists($upload_dir)) wp_mkdir_p($upload_dir); |
|
|
|
QRcode::png($hushAddress, $upload_dir.'qr_code-'.$timestamp.'.png', QR_ECLEVEL_L, 8); |
|
|
|
QRcode::png($hushQRURI, $upload_dir.'qr_code-'.$timestamp.'.png', QR_ECLEVEL_L, 8); |
|
|
|
|
|
|
|
// Display instructions for customer to send payment to |
|
|
|
$htmlOutput .= "<h2>HUSH Payment Instructions</h2>"; |
|
|
|