From 7428a4446bdc80b1f3400127bd521ec29de192bb Mon Sep 17 00:00:00 2001 From: Alex P Date: Mon, 6 Dec 2021 12:50:27 +0200 Subject: [PATCH] Limit max length of invoice prefix --- modules/ppcp-wc-gateway/services.php | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ppcp-wc-gateway/services.php b/modules/ppcp-wc-gateway/services.php index 73239fc66..04a7aa035 100644 --- a/modules/ppcp-wc-gateway/services.php +++ b/modules/ppcp-wc-gateway/services.php @@ -741,6 +741,7 @@ return array( 'type' => 'text', 'desc_tip' => true, 'description' => __( 'If you use your PayPal account with more than one installation, please use a distinct prefix to separate those installations. Please do not use numbers in your prefix.', 'woocommerce-paypal-payments' ), + 'maxlength' => 15, 'default' => ( static function (): string { $site_url = get_site_url( get_current_blog_id() ); $hash = md5( $site_url );