From 6df2aeb8a1760dd4c938dc4deedb10455f240cf5 Mon Sep 17 00:00:00 2001 From: Frey Mansikkaniemi Date: Thu, 23 Jul 2020 00:17:46 +0800 Subject: [PATCH] QR code url fixed --- wc-gateway-invite-fps-payment-gateway-class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wc-gateway-invite-fps-payment-gateway-class.php b/wc-gateway-invite-fps-payment-gateway-class.php index e8f97ae..6419dfa 100644 --- a/wc-gateway-invite-fps-payment-gateway-class.php +++ b/wc-gateway-invite-fps-payment-gateway-class.php @@ -151,7 +151,7 @@ if( !class_exists('WC_Gateway_Invite_FPS_Payment_Gateway') ){ $qr_code_url = add_query_arg( '_wpnonce', wp_create_nonce(ITS_WPF_PLUGIN_ID), - plugins_url('fps-qrcode.php', __FILE__) . '?generate_fps_qrcode=' . urlencode($qrcode->getDataString()) + get_site_url() . '/?generate_fps_qrcode=' . urlencode($qrcode->getDataString()) ); if ( $this->description ) {