mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Introduce pay in 3 for UK
This commit is contained in:
parent
39af18726e
commit
1f39afc6e6
2 changed files with 19 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue