diff --git a/modules/ppcp-wc-gateway/src/Helper/PayUponInvoiceHelper.php b/modules/ppcp-wc-gateway/src/Helper/PayUponInvoiceHelper.php index 6b9af84c8..98bf0fbe3 100644 --- a/modules/ppcp-wc-gateway/src/Helper/PayUponInvoiceHelper.php +++ b/modules/ppcp-wc-gateway/src/Helper/PayUponInvoiceHelper.php @@ -59,6 +59,12 @@ class PayUponInvoiceHelper { return false; } + // phpcs:ignore WordPress.Security.NonceVerification.Missing + $shipping_country = wc_clean( wp_unslash( $_POST['s_country'] ?? '' ) ); + if ( $shipping_country && 'DE' !== $shipping_country ) { + return false; + } + if ( ! $this->is_valid_currency() ) { return false; }