mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix phpcs errors
This commit is contained in:
parent
77a129c0a3
commit
1d17335a99
1 changed files with 41 additions and 41 deletions
|
@ -1785,47 +1785,47 @@ return array(
|
||||||
unset( $fields['disable_funding']['options']['card'] );
|
unset( $fields['disable_funding']['options']['card'] );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable Pay in 3 for UK.
|
* Enable Pay in 3 for UK.
|
||||||
*/
|
*/
|
||||||
if ( 'GB' === $country ) {
|
if ( 'GB' === $country ) {
|
||||||
$fields['message_heading'] = [
|
$fields['message_heading'] = array(
|
||||||
'heading' => __( 'Pay Later Messaging on Checkout', 'woocommerce-paypal-payments' ),
|
'heading' => __( 'Pay Later Messaging on Checkout', 'woocommerce-paypal-payments' ),
|
||||||
'type' => 'ppcp-heading',
|
'type' => 'ppcp-heading',
|
||||||
'screens' => array(
|
'screens' => array(
|
||||||
State::STATE_PROGRESSIVE,
|
State::STATE_PROGRESSIVE,
|
||||||
State::STATE_ONBOARDED,
|
State::STATE_ONBOARDED,
|
||||||
),
|
),
|
||||||
'requirements' => array( 'messages' ),
|
'requirements' => array( 'messages' ),
|
||||||
'gateway' => 'paypal',
|
'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' ),
|
'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' ),
|
'class' => array( 'ppcp-subheading' ),
|
||||||
];
|
);
|
||||||
$fields['message_product_heading'] = [
|
$fields['message_product_heading'] = array(
|
||||||
'heading' => __( 'Pay Later Messaging on Single Product Page', 'woocommerce-paypal-payments' ),
|
'heading' => __( 'Pay Later Messaging on Single Product Page', 'woocommerce-paypal-payments' ),
|
||||||
'type' => 'ppcp-heading',
|
'type' => 'ppcp-heading',
|
||||||
'screens' => array(
|
'screens' => array(
|
||||||
State::STATE_PROGRESSIVE,
|
State::STATE_PROGRESSIVE,
|
||||||
State::STATE_ONBOARDED,
|
State::STATE_ONBOARDED,
|
||||||
),
|
),
|
||||||
'requirements' => array( 'messages' ),
|
'requirements' => array( 'messages' ),
|
||||||
'gateway' => 'paypal',
|
'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' ),
|
'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' ),
|
'class' => array( 'ppcp-subheading' ),
|
||||||
];
|
);
|
||||||
$fields['message_cart_heading'] = [
|
$fields['message_cart_heading'] = array(
|
||||||
'heading' => __( 'Pay Later Messaging on Cart', 'woocommerce-paypal-payments' ),
|
'heading' => __( 'Pay Later Messaging on Cart', 'woocommerce-paypal-payments' ),
|
||||||
'type' => 'ppcp-heading',
|
'type' => 'ppcp-heading',
|
||||||
'screens' => array(
|
'screens' => array(
|
||||||
State::STATE_PROGRESSIVE,
|
State::STATE_PROGRESSIVE,
|
||||||
State::STATE_ONBOARDED,
|
State::STATE_ONBOARDED,
|
||||||
),
|
),
|
||||||
'requirements' => array( 'messages' ),
|
'requirements' => array( 'messages' ),
|
||||||
'gateway' => 'paypal',
|
'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' ),
|
'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' ),
|
'class' => array( 'ppcp-subheading' ),
|
||||||
];
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$dcc_applies = $container->get( 'api.helpers.dccapplies' );
|
$dcc_applies = $container->get( 'api.helpers.dccapplies' );
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue