Oops! That page can’t be found.
It looks like nothing was found at this location. Maybe try a search?
/*
Plugin: Crypto QR Pay (Complete rewrite per user request)
Structure (single-file bundle for easy install):
- crypto-qr-pay.php (this file) contains all code sections separated by comments
Instructions: save this file as wp-content/plugins/crypto-qr-pay/crypto-qr-pay.php and create folders:
- wp-content/plugins/crypto-qr-pay/assets/js/checkout.js (content provided below)
- wp-content/plugins/crypto-qr-pay/assets/css/style.css (content provided below)
Activate plugin in WP admin. Then go to WooCommerce -> Crypto QR Pay to configure ETH wallet (backend wallet), USDT contract, Etherscan API key, store logo/title/description/support url.
------ MAIN PLUGIN (this file defines constants and includes) ------
------ assets/js/checkout.js (place in assets/js/checkout.js) ------
// content for assets/js/checkout.js
jQuery(function($){
// Only run on order-pay page which includes #cryptoqr_checkout
if (!$('#cryptoqr_checkout').length) return;
// get order id from URL
const m = location.href.match(/order-pay\/(\d+)/);
if (!m || !m[1]) return;
const orderId = m[1];
const payUrl = location.href;
// show logo/title/desc from cryptoqr_vars
if (cryptoqr_vars.logo) {
const img = '';
$('#cryptoqr_checkout .cryptoqr-header').remove();
$('#cryptoqr_checkout').prepend('
'+cryptoqr_vars.description+'
It looks like nothing was found at this location. Maybe try a search?