diff --git a/app/Process.php b/app/Process.php index 84783ea..8794fae 100644 --- a/app/Process.php +++ b/app/Process.php @@ -208,8 +208,7 @@ public function paymentRedirectUrls(object $data): array */ public function hashCryptoPayField(array $forms, bool $multiple = false): bool { - return false !== wpforms_has_field_type('cryptopay', $forms, $multiple) - || false !== wpforms_has_field_type('cryptopay-lite', $forms, $multiple); + return false !== wpforms_has_field_type($this->type, $forms, $multiple); } /** diff --git a/assets/js/main.js b/assets/js/main.js index 93a78dd..d6860e3 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -50,7 +50,7 @@ } $(".wpforms-error.cp-error").remove() } else if ($(".wpforms-error.cp-error").length === 0) { - $("#cryptopay, #cryptopay-lite").before('
' + amountMustBeGreaterThanZero + '
') + $("#" + type).before('
' + amountMustBeGreaterThanZero + '
') } }); });