Add Klarna Payments to default payment gateway suggestions (https://github.com/woocommerce/woocommerce-admin/pull/7267)

This commit is contained in:
Joshua T Flowers 2021-07-06 11:13:05 -04:00 committed by GitHub
parent e48fabe964
commit c1978af7f7
1 changed files with 26 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class DefaultPaymentGateways {
),
array(
'id' => 'kco',
'title' => __( 'Klarna', 'woocommerce-admin' ),
'title' => __( 'Klarna Checkout', 'woocommerce-admin' ),
'content' => __( 'Choose the payment that you want, pay now, pay later or slice it. No credit card numbers, no passwords, no worries.', 'woocommerce-admin' ),
'image' => WC()->plugin_url() . '/assets/images/klarna-black.png',
'plugins' => array( 'klarna-checkout-for-woocommerce' ),
@ -70,6 +70,31 @@ class DefaultPaymentGateways {
self::get_rules_for_cbd( false ),
),
),
array(
'id' => 'klarna_payments',
'title' => __( 'Klarna Payments', 'woocommerce-admin' ),
'content' => __( 'Choose the payment that you want, pay now, pay later or slice it. No credit card numbers, no passwords, no worries.', 'woocommerce-admin' ),
'image' => WC()->plugin_url() . '/assets/images/klarna-black.png',
'plugins' => array( 'klarna-payments-for-woocommerce' ),
'is_visible' => array(
self::get_rules_for_countries(
array(
'DK',
'DE',
'AT',
'NL',
'CH',
'BE',
'SP',
'PL',
'FR',
'IT',
'GB',
)
),
self::get_rules_for_cbd( false ),
),
),
array(
'id' => 'mollie_wc_gateway_banktransfer',
'title' => __( 'Mollie', 'woocommerce-admin' ),