diff --git a/modules/ppcp-button/src/Helper/class-messagesapply.php b/modules/ppcp-button/src/Helper/class-messagesapply.php index ccfdbbced..7f37fba86 100644 --- a/modules/ppcp-button/src/Helper/class-messagesapply.php +++ b/modules/ppcp-button/src/Helper/class-messagesapply.php @@ -22,6 +22,7 @@ class MessagesApply { */ private $countries = array( 'US', + 'GB', ); /** diff --git a/modules/ppcp-wc-gateway/services.php b/modules/ppcp-wc-gateway/services.php index 1aba3f682..bb8c82d02 100644 --- a/modules/ppcp-wc-gateway/services.php +++ b/modules/ppcp-wc-gateway/services.php @@ -1785,6 +1785,24 @@ return array( unset( $fields['disable_funding']['options']['card'] ); } + /** + * Enable Pay in 3 for UK. + */ + if ( 'GB' === $country ) { + $fields['message_heading'] = [ + 'heading' => __( 'Pay Later Messaging on Checkout', 'woocommerce-paypal-payments' ), + 'type' => 'ppcp-heading', + 'screens' => array( + State::STATE_PROGRESSIVE, + State::STATE_ONBOARDED, + ), + 'requirements' => array( 'messages' ), + 'gateway' => 'paypal', + 'description' => __( 'Display pay later messaging on your site for offers like Pay in 3, which lets customers pay with 3 interest-free monthly payments. We’ll show messages on your site to promote this feature for you. You may not promote pay later offers with any other content, marketing, or materials.', 'woocommerce-paypal-payments' ), + 'class' => array( 'ppcp-subheading' ), + ]; + } + $dcc_applies = $container->get( 'api.helpers.dccapplies' ); /** * Depending on your store location, some credit cards can't be used.