Fixed currency error messa

This commit is contained in:
Frey Mansikkaniemi 2020-07-23 00:25:32 +08:00
parent 6df2aeb8a1
commit abbd5b0f42

View File

@ -140,14 +140,15 @@ if( !class_exists('WC_Gateway_Invite_FPS_Payment_Gateway') ){
$fps_ref_string = $wp->query_vars['order-pay'] ?? $this->random_strings(5);
$fps_data = $this->fps_data($fps_ref_string);
$fps_data['currency'] = $fps_data['curr'];
$qrcode = new ITS_FPS_QRCodeData($fps_data);
if( !$fps_data ){
echo __("This payment method is only available for HKD payments",ITS_WPF_PLUGIN_ID);
return;
}
$fps_data['currency'] = $fps_data['curr'];
$qrcode = new ITS_FPS_QRCodeData($fps_data);
$qr_code_url = add_query_arg(
'_wpnonce',
wp_create_nonce(ITS_WPF_PLUGIN_ID),