Commit c88c1f445d1 for woocommerce
commit c88c1f445d149fd2211bfc110c0042e24d987999
Author: Vlad Olaru <vlad.olaru@automattic.com>
Date: Thu Aug 27 09:30:41 2026 +0300
[Payments NOX] Rebrand Klarna Checkout to Kustom Checkout (#68035)
* update: Rebrand Klarna Checkout recommendation to Kustom Checkout
Klarna Checkout was spun off and rebranded to Kustom Checkout. The
WordPress.org plugin now publishes as "Kustom Checkout for WooCommerce"
and the WooCommerce.com listing moved to the kustom-checkout slug, but
the payment recommendation still showed the old name, the old Klarna
logo, and links that only resolved through redirects.
Update the recommendation to the new branding: new icon asset, "Kustom
Checkout" as the display name, and WooCommerce.com links pointing
straight at the kustom-checkout slug. The legacy onboarding card gets
the same treatment and now points at the Kustom icon instead of the
Klarna images, which stay in place for the Klarna Payments card that
still shares them.
Kustom serves terms from a single https://www.kustom.co/legal page, with
locale variants for only fi, no and sv, and publishes no pricing page
anywhere. The eight per-country link overrides existed solely to swap in
klarna.com locale URLs, so they no longer earn their place: replace them
with one global terms link and drop the pricing link, which 18 of the 43
recommendations already omit.
Rename the suggestion throughout, including its ID value: the constant
becomes KUSTOM_CHECKOUT, the value becomes 'kustom_checkout', and the
provider class becomes KustomCheckout. No migration ships with this.
Installed gateways are matched to their suggestion by plugin slug rather
than by suggestion ID, so an installed store keeps its title, icon and
links; this suggestion is never tagged preferred, so it never reaches
the list that hidden-suggestion state and provider ordering apply to.
What remains is a stale ordering key on stores that both installed the
extension and reordered their providers, which is inert, and a rename of
the suggestion_id dimension in Tracks. The provider_* events carry
provider_id and provider_extension_slug alongside it, both unchanged.
The WordPress.org slug klarna-checkout-for-woocommerce is unchanged
upstream, so it stays, as do the extension's own 'kco' gateway ID and
KCO_WC() runtime symbols.
Refs WOOPRD-3716
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* update: Rebrand Klarna Checkout help panel entry to Kustom Checkout
The Kustom Checkout rebrand renamed the payment recommendation, but the
Help drawer keeps its own hardcoded copy of the title and documentation
link. That entry is keyed on the 'kco' gateway ID, which is unchanged,
so it still renders — with the old name and a link to
document/klarna-checkout/, which now resolves only through a 301 to
document/kustom-checkout/. That redirect is what the rebrand set out to
remove.
The rename cannot reach these strings on its own: withSelect reduces the
suggestions to a map of IDs and drops titles and links, so the
recommendation's own title and URL never propagate to this panel. This
file is the only place the copy can be fixed.
Point the entry at the new branding: "Kustom - Introduction" and
document/kustom-checkout/, which returns 200 directly. The Klarna
Payments entry below it stays as it is, since that product did not
rebrand and its documentation URL resolves without a redirect.
Refs WOOPRD-3716
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* update: Rebrand Klarna Checkout setup wizard entry to Kustom Checkout
The setup wizard's in-cart gateway list still offered the recommendation
as "Klarna Checkout for WooCommerce", with the Klarna wordmark and a
link to products/klarna-checkout/. The product rebranded to Kustom
Checkout, so the name is wrong, the logo belongs to the wrong company,
and the URL resolves only through a 301 to products/kustom-checkout/.
The class has been deprecated since 4.6.0 and onboarding moved to
WooCommerce Admin, so none of this is reachable in practice. The copy is
still translated, though, so leaving it keeps the old name flowing into
translations and leaves the rebrand half-applied.
Apply what the rebrand did everywhere else: the name WordPress.org now
publishes, the Kustom icon, and a link pointing straight at
products/kustom-checkout/, which returns 200. Rename the local
description variable so it stops naming the wrong product.
Identifiers stay as they are. The 'klarna_checkout' array key is part of
the return value of the public get_wizard_in_cart_payment_gateways(),
the klarna-checkout-for-woocommerce repo slug is unchanged upstream, and
klarna-logo is a shared sizing hook that Klarna Payments uses too.
The Klarna Payments entry is untouched: that product did not rebrand and
its product URL returns 200 with no redirect.
Refs WOOPRD-3716
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix: Update kco help panel test fixture to Kustom branding
The help panel test renders the panel once per gateway fixture with only
that gateway suggested, then asserts at least one rendered node contains
the fixture's text. The 'kco' fixture still looked for "Klarna", but the
entry now renders "Kustom - Introduction", and the Klarna Payments entry
that could otherwise supply that text is not rendered in that pass.
Nothing matched, so the assertion failed.
Point the 'kco' fixture at "Kustom" so it describes what the panel now
renders. The klarna_payments fixture stays on "Klarna": that entry is
unchanged and still renders "Klarna - Introduction".
Refs WOOPRD-3716
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
diff --git a/plugins/woocommerce/assets/images/onboarding/icons/klarna-checkout.svg b/plugins/woocommerce/assets/images/onboarding/icons/klarna-checkout.svg
deleted file mode 100644
index 00dac7c3c1f..00000000000
--- a/plugins/woocommerce/assets/images/onboarding/icons/klarna-checkout.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="160" height="160"><image width="160" height="160" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAAAAACupDjxAAALUUlEQVR4Ae3XBYwcV9b28f85urpSqaVRSyNreS1rViPLy14OMzODIczJQpg5MYSjMKM9IWPs4DjMZAo6MYQcj8cTsMdeT3c/X1d1e7xkqb07/l6qn+FWnWp47rl1SzPk/kfI5XK5XC6Xy+VyuVwul8vlcrlcLpfL5XK5nGFggK2uQK3430HwQpGUm7uRqY/B+W/ACtGvff6xp0aAJXDJtIfbT8HOfn7q09XB/hvkCwHel/QS0cDmSHoAnpT0IOb8d0gIr0iaRoxOv4Wq6DKYoJLuxvlvwIA3JLXjljCkR2UdBxNV0R3gq7dK7cidmt7y6mO3esX6POF0VTQND5E7VdHSH9cC3gkW3FfnCKQ8GDUJqRAiWMgGMFsXLXxLFbUTIz/oUFmvkgYs6w4Sj9D0hw1byViWyIFIzfc2+IVBbC5ml1p++6sCrLuAhUibSmWdTq2Dt+Owyd1zlnZ/1nZE29PtE5p9/GPtE8P6DzzoWzza/vTIQeM+XvbV9Osi/fpHOK59YfdXs0b8qf2ZJ89fNwGdE1QpaW7IAkp3k3B8t3pVmouqGrdY5TBM0qI5ysxsITEeUk2PpGfWRcBpcFJJFeloQ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xy+VyuVwul8vlcrlcLpfL5XK5XC6Xy/1v8f8A/nq/Bc4s/nEAAAAASUVORK5CYII="/></svg>
\ No newline at end of file
diff --git a/plugins/woocommerce/assets/images/onboarding/icons/kustom-checkout.svg b/plugins/woocommerce/assets/images/onboarding/icons/kustom-checkout.svg
new file mode 100644
index 00000000000..519ba7c6699
--- /dev/null
+++ b/plugins/woocommerce/assets/images/onboarding/icons/kustom-checkout.svg
@@ -0,0 +1 @@
+<svg width="40" height="40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 4a4 4 0 0 1 4-4h32a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V4z" fill="#EAFE53"/><path d="M27.081 20.58l5.304-5.752L25.821 10l-5.755 6.737v-5.932h-8.408v5.812H7V23.8h4.658V30h8.408v-5.874c2.134 1.67 3.33 3.608 3.783 5.874H33c-.71-3.636-2.649-6.766-5.915-9.418l-.004-.002z" fill="#161616"/></svg>
\ No newline at end of file
diff --git a/plugins/woocommerce/changelog/update-WOOPRD-3716-kustom-checkout-rebrand b/plugins/woocommerce/changelog/update-WOOPRD-3716-kustom-checkout-rebrand
new file mode 100644
index 00000000000..541f4c68dc1
--- /dev/null
+++ b/plugins/woocommerce/changelog/update-WOOPRD-3716-kustom-checkout-rebrand
@@ -0,0 +1,4 @@
+Significance: patch
+Type: update
+
+Update the Klarna Checkout payment recommendation to its new Kustom Checkout branding, icon, and links.
diff --git a/plugins/woocommerce/client/admin/client/activity-panel/panels/help.js b/plugins/woocommerce/client/admin/client/activity-panel/panels/help.js
index 1732b73edbc..745489b492b 100644
--- a/plugins/woocommerce/client/admin/client/activity-panel/panels/help.js
+++ b/plugins/woocommerce/client/admin/client/activity-panel/panels/help.js
@@ -137,8 +137,8 @@ function getPaymentGatewaySuggestions( props ) {
link: 'https://woocommerce.com/document/woocommerce-square/?utm_source=help_panel&utm_medium=product',
},
paymentGatewaySuggestions.kco && {
- title: __( 'Klarna - Introduction', 'woocommerce' ),
- link: 'https://woocommerce.com/document/klarna-checkout/?utm_source=help_panel&utm_medium=product',
+ title: __( 'Kustom - Introduction', 'woocommerce' ),
+ link: 'https://woocommerce.com/document/kustom-checkout/?utm_source=help_panel&utm_medium=product',
},
paymentGatewaySuggestions.klarna_payments && {
title: __( 'Klarna - Introduction', 'woocommerce' ),
diff --git a/plugins/woocommerce/client/admin/client/activity-panel/test/help-panel.js b/plugins/woocommerce/client/admin/client/activity-panel/test/help-panel.js
index 614e8a6d2cb..b8c440e42cd 100644
--- a/plugins/woocommerce/client/admin/client/activity-panel/test/help-panel.js
+++ b/plugins/woocommerce/client/admin/client/activity-panel/test/help-panel.js
@@ -23,7 +23,7 @@ describe( 'Activity Panels', () => {
},
{
id: 'kco',
- text: 'Klarna',
+ text: 'Kustom',
},
{
id: 'klarna_payments',
diff --git a/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php b/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php
index 0285cdeb38b..b3fe9e77d4b 100644
--- a/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php
+++ b/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php
@@ -1416,10 +1416,10 @@ class WC_Admin_Setup_Wizard {
__( 'Safe and secure payments using credit cards or your customer\'s PayPal account. <a href="%s" target="_blank">Learn more</a>.', 'woocommerce' ),
'https://woocommerce.com/products/woocommerce-gateway-paypal-checkout/'
) . '</p>';
- $klarna_checkout_description = '<p>' . sprintf(
+ $kustom_checkout_description = '<p>' . sprintf(
/* translators: %s: URL */
- __( 'Full checkout experience with pay now, pay later and slice it. No credit card numbers, no passwords, no worries. <a href="%s" target="_blank">Learn more about Klarna</a>.', 'woocommerce' ),
- 'https://woocommerce.com/products/klarna-checkout/'
+ __( 'Full checkout experience with pay now, pay later and slice it. No credit card numbers, no passwords, no worries. <a href="%s" target="_blank">Learn more about Kustom</a>.', 'woocommerce' ),
+ 'https://woocommerce.com/products/kustom-checkout/'
) . '</p>';
$klarna_payments_description = '<p>' . sprintf(
/* translators: %s: URL */
@@ -1499,9 +1499,9 @@ class WC_Admin_Setup_Wizard {
),
),
'klarna_checkout' => array(
- 'name' => __( 'Klarna Checkout for WooCommerce', 'woocommerce' ),
- 'description' => $klarna_checkout_description,
- 'image' => WC()->plugin_url() . '/assets/images/klarna-black.png',
+ 'name' => __( 'Kustom Checkout for WooCommerce', 'woocommerce' ),
+ 'description' => $kustom_checkout_description,
+ 'image' => WC()->plugin_url() . '/assets/images/onboarding/icons/kustom-checkout.svg',
'enabled' => true,
'class' => 'klarna-logo',
'repo-slug' => 'klarna-checkout-for-woocommerce',
diff --git a/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/DefaultPaymentGateways.php b/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/DefaultPaymentGateways.php
index 9b804d9dbb7..0d86c3e63bb 100644
--- a/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/DefaultPaymentGateways.php
+++ b/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/DefaultPaymentGateways.php
@@ -35,7 +35,7 @@ class DefaultPaymentGateways {
'payubiz' => 6,
'square_credit_card' => 6,
'klarna_payments' => 6,
- // Klarna Checkout.
+ // Kustom Checkout.
'kco' => 6,
'paystack' => 6,
'eway' => 7,
@@ -213,10 +213,10 @@ class DefaultPaymentGateways {
),
array(
'id' => 'kco',
- 'title' => __( 'Klarna Checkout', 'woocommerce' ),
+ 'title' => __( 'Kustom Checkout', 'woocommerce' ),
'content' => __( 'Choose the payment that you want, pay now, pay later or slice it. No credit card numbers, no passwords, no worries.', 'woocommerce' ),
- 'image' => WC_ADMIN_IMAGES_FOLDER_URL . '/klarna-black.png',
- 'image_72x72' => WC_ADMIN_IMAGES_FOLDER_URL . '/payment_methods/72x72/klarna.png',
+ 'image' => WC_ADMIN_IMAGES_FOLDER_URL . '/onboarding/icons/kustom-checkout.svg',
+ 'image_72x72' => WC_ADMIN_IMAGES_FOLDER_URL . '/onboarding/icons/kustom-checkout.svg',
'plugins' => array( 'klarna-checkout-for-woocommerce' ),
'is_visible' => array(
self::get_rules_for_countries(
diff --git a/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php b/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php
index f2c2f219f1d..56da82bbbe9 100644
--- a/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php
+++ b/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php
@@ -14,8 +14,8 @@ use Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\GoCardless;
use Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\Helcim;
use Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\HelioPay;
use Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\Klarna;
-use Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\KlarnaCheckout;
use Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\Komoju;
+use Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\KustomCheckout;
use Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\Mastercard;
use Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\MercadoPago;
use Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\Mollie;
@@ -144,7 +144,7 @@ class PaymentsProviders {
'monei' => Monei::class,
'monei_*' => Monei::class,
'gocardless' => GoCardless::class,
- 'kco' => KlarnaCheckout::class,
+ 'kco' => KustomCheckout::class,
'visa_acceptance_solutions_*' => Visa::class,
'mastercard_merchant_cloud' => Mastercard::class,
'eway' => Eway::class,
@@ -185,7 +185,7 @@ class PaymentsProviders {
ExtensionSuggestions::PAYTRAIL => Paytrail::class,
ExtensionSuggestions::MONEI => Monei::class,
ExtensionSuggestions::GOCARDLESS => GoCardless::class,
- ExtensionSuggestions::KLARNA_CHECKOUT => KlarnaCheckout::class,
+ ExtensionSuggestions::KUSTOM_CHECKOUT => KustomCheckout::class,
ExtensionSuggestions::VISA => Visa::class,
ExtensionSuggestions::MASTERCARD => Mastercard::class,
ExtensionSuggestions::EWAY => Eway::class,
diff --git a/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/KlarnaCheckout.php b/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/KustomCheckout.php
similarity index 91%
rename from plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/KlarnaCheckout.php
rename to plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/KustomCheckout.php
index 5ce90fc6b7b..cf361787a13 100644
--- a/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/KlarnaCheckout.php
+++ b/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/KustomCheckout.php
@@ -10,11 +10,11 @@ use WC_Payment_Gateway;
defined( 'ABSPATH' ) || exit;
/**
- * KlarnaCheckout payment gateway provider class.
+ * KustomCheckout payment gateway provider class.
*
- * This class handles all the custom logic for the KlarnaCheckout payment gateway provider.
+ * This class handles all the custom logic for the KustomCheckout payment gateway provider.
*/
-class KlarnaCheckout extends PaymentGateway {
+class KustomCheckout extends PaymentGateway {
/**
* Check if the payment gateway needs setup.
@@ -71,7 +71,7 @@ class KlarnaCheckout extends PaymentGateway {
* @return bool True if the payment gateway is in test mode onboarding, false otherwise.
*/
public function is_in_test_mode_onboarding( WC_Payment_Gateway $payment_gateway ): bool {
- // Test mode is actually sandbox mode for KlarnaCheckout, affecting the API details used.
+ // Test mode is actually sandbox mode for KustomCheckout, affecting the API details used.
return $this->is_in_test_mode( $payment_gateway );
}
}
diff --git a/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php b/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php
index b061a670e13..ceb4e52a37e 100644
--- a/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php
+++ b/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php
@@ -44,7 +44,7 @@ class PaymentsExtensionSuggestions {
const AFTERPAY = 'afterpay';
const CLEARPAY = 'clearpay';
const KLARNA = 'klarna';
- const KLARNA_CHECKOUT = 'klarna_checkout';
+ const KUSTOM_CHECKOUT = 'kustom_checkout';
const HELCIM = 'helcim';
const KOMOJU = 'komoju';
const HELIOPAY = 'heliopay';
@@ -237,7 +237,7 @@ class PaymentsExtensionSuggestions {
self::WOOPAYMENTS,
self::PAYPAL_FULL_STACK,
self::STRIPE,
- self::SQUARE => array(
+ self::SQUARE => array(
'_merge_on_type' => array(
'links' => array(
array(
@@ -255,24 +255,11 @@ class PaymentsExtensionSuggestions {
self::VISA,
self::AIRWALLEX,
self::VIVA_WALLET,
- self::KLARNA_CHECKOUT => array(
- '_merge_on_type' => array(
- 'links' => array(
- array(
- '_type' => PaymentsProviders::LINK_TYPE_PRICING,
- 'url' => 'https://www.klarna.com/uk/business/payment-methods/',
- ),
- array(
- '_type' => PaymentsProviders::LINK_TYPE_TERMS,
- 'url' => 'https://www.klarna.com/uk/terms-and-conditions/',
- ),
- ),
- ),
- ),
+ self::KUSTOM_CHECKOUT,
self::GOCARDLESS,
self::PAYPAL_WALLET,
self::AMAZON_PAY,
- self::AFFIRM => array(
+ self::AFFIRM => array(
'_merge_on_type' => array(
'links' => array(
array(
@@ -287,7 +274,7 @@ class PaymentsExtensionSuggestions {
),
),
self::CLEARPAY,
- self::KLARNA => array(
+ self::KLARNA => array(
'_merge_on_type' => array(
'links' => array(
array(
@@ -349,7 +336,7 @@ class PaymentsExtensionSuggestions {
self::VISA,
self::AIRWALLEX,
self::VIVA_WALLET,
- self::GOCARDLESS => array(
+ self::GOCARDLESS => array(
'_merge_on_type' => array(
'links' => array(
array(
@@ -359,24 +346,11 @@ class PaymentsExtensionSuggestions {
),
),
),
- self::KLARNA_CHECKOUT => array(
- '_merge_on_type' => array(
- 'links' => array(
- array(
- '_type' => PaymentsProviders::LINK_TYPE_PRICING,
- 'url' => 'https://www.klarna.com/at/verkaeufer/',
- ),
- array(
- '_type' => PaymentsProviders::LINK_TYPE_TERMS,
- 'url' => 'https://www.klarna.com/at/agb/',
- ),
- ),
- ),
- ),
+ self::KUSTOM_CHECKOUT,
self::NEXI_CHECKOUT,
self::PAYPAL_WALLET,
self::AMAZON_PAY,
- self::KLARNA => array(
+ self::KLARNA => array(
'_merge_on_type' => array(
'links' => array(
array(
@@ -530,7 +504,7 @@ class PaymentsExtensionSuggestions {
self::MOLLIE,
self::VISA,
self::VIVA_WALLET,
- self::GOCARDLESS => array(
+ self::GOCARDLESS => array(
'_merge_on_type' => array(
'links' => array(
array(
@@ -540,24 +514,11 @@ class PaymentsExtensionSuggestions {
),
),
),
- self::KLARNA_CHECKOUT => array(
- '_merge_on_type' => array(
- 'links' => array(
- array(
- '_type' => PaymentsProviders::LINK_TYPE_PRICING,
- 'url' => 'https://www.klarna.com/dk/erhverv/',
- ),
- array(
- '_type' => PaymentsProviders::LINK_TYPE_TERMS,
- 'url' => 'https://www.klarna.com/dk/vilkar/',
- ),
- ),
- ),
- ),
+ self::KUSTOM_CHECKOUT,
self::NEXI_CHECKOUT,
self::PAYPAL_WALLET,
self::AMAZON_PAY,
- self::KLARNA => array(
+ self::KLARNA => array(
'_merge_on_type' => array(
'links' => array(
array(
@@ -598,7 +559,7 @@ class PaymentsExtensionSuggestions {
self::VISA,
self::VIVA_WALLET,
self::PAYTRAIL,
- self::GOCARDLESS => array(
+ self::GOCARDLESS => array(
'_merge_on_type' => array(
'links' => array(
array(
@@ -608,22 +569,9 @@ class PaymentsExtensionSuggestions {
),
),
),
- self::KLARNA_CHECKOUT => array(
- '_merge_on_type' => array(
- 'links' => array(
- array(
- '_type' => PaymentsProviders::LINK_TYPE_PRICING,
- 'url' => 'https://www.klarna.com/fi/yritys/',
- ),
- array(
- '_type' => PaymentsProviders::LINK_TYPE_TERMS,
- 'url' => 'https://www.klarna.com/fi/ehdot/',
- ),
- ),
- ),
- ),
+ self::KUSTOM_CHECKOUT,
self::PAYPAL_WALLET,
- self::KLARNA => array(
+ self::KLARNA => array(
'_merge_on_type' => array(
'links' => array(
array(
@@ -726,7 +674,7 @@ class PaymentsExtensionSuggestions {
self::VISA,
self::AIRWALLEX,
self::VIVA_WALLET,
- self::GOCARDLESS => array(
+ self::GOCARDLESS => array(
'_merge_on_type' => array(
'links' => array(
array(
@@ -736,24 +684,11 @@ class PaymentsExtensionSuggestions {
),
),
),
- self::KLARNA_CHECKOUT => array(
- '_merge_on_type' => array(
- 'links' => array(
- array(
- '_type' => PaymentsProviders::LINK_TYPE_PRICING,
- 'url' => 'https://www.klarna.com/de/verkaeufer/',
- ),
- array(
- '_type' => PaymentsProviders::LINK_TYPE_TERMS,
- 'url' => 'https://www.klarna.com/de/agb/',
- ),
- ),
- ),
- ),
+ self::KUSTOM_CHECKOUT,
self::NEXI_CHECKOUT,
self::PAYPAL_WALLET,
self::AMAZON_PAY,
- self::KLARNA => array(
+ self::KLARNA => array(
'_merge_on_type' => array(
'links' => array(
array(
@@ -1011,23 +946,10 @@ class PaymentsExtensionSuggestions {
self::MOLLIE,
self::VISA,
self::VIVA_WALLET,
- self::KLARNA_CHECKOUT => array(
- '_merge_on_type' => array(
- 'links' => array(
- array(
- '_type' => PaymentsProviders::LINK_TYPE_PRICING,
- 'url' => 'https://www.klarna.com/nl/zakelijk/',
- ),
- array(
- '_type' => PaymentsProviders::LINK_TYPE_TERMS,
- 'url' => 'https://www.klarna.com/nl/voorwaarden/',
- ),
- ),
- ),
- ),
+ self::KUSTOM_CHECKOUT,
self::PAYPAL_WALLET,
self::AMAZON_PAY,
- self::KLARNA => array(
+ self::KLARNA => array(
'_merge_on_type' => array(
'links' => array(
array(
@@ -1055,23 +977,10 @@ class PaymentsExtensionSuggestions {
self::STRIPE,
self::MOLLIE,
self::VISA,
- self::KLARNA_CHECKOUT => array(
- '_merge_on_type' => array(
- 'links' => array(
- array(
- '_type' => PaymentsProviders::LINK_TYPE_PRICING,
- 'url' => 'https://www.klarna.com/no/bedrift/',
- ),
- array(
- '_type' => PaymentsProviders::LINK_TYPE_TERMS,
- 'url' => 'https://www.klarna.com/no/vilkar/',
- ),
- ),
- ),
- ),
+ self::KUSTOM_CHECKOUT,
self::NEXI_CHECKOUT,
self::PAYPAL_WALLET,
- self::KLARNA => array(
+ self::KLARNA => array(
'_merge_on_type' => array(
'links' => array(
array(
@@ -1270,20 +1179,7 @@ class PaymentsExtensionSuggestions {
self::MOLLIE,
self::VISA,
self::VIVA_WALLET,
- self::KLARNA_CHECKOUT => array(
- '_merge_on_type' => array(
- 'links' => array(
- array(
- '_type' => PaymentsProviders::LINK_TYPE_PRICING,
- 'url' => 'https://www.klarna.com/international/enterprise/',
- ),
- array(
- '_type' => PaymentsProviders::LINK_TYPE_TERMS,
- 'url' => 'https://www.klarna.com/se/villkor/',
- ),
- ),
- ),
- ),
+ self::KUSTOM_CHECKOUT,
self::NEXI_CHECKOUT,
self::PAYPAL_WALLET,
self::AMAZON_PAY,
@@ -4100,35 +3996,31 @@ class PaymentsExtensionSuggestions {
),
),
),
- self::KLARNA_CHECKOUT => array(
+ self::KUSTOM_CHECKOUT => array(
'_type' => self::TYPE_PSP,
- 'title' => esc_html__( 'Klarna Checkout', 'woocommerce' ),
+ 'title' => esc_html__( 'Kustom Checkout', 'woocommerce' ),
'description' => esc_html__( 'A full checkout experience embedded on your site that includes all popular payment methods (Pay Now, Pay Later, Financing, Installments).', 'woocommerce' ),
- 'icon' => plugins_url( 'assets/images/onboarding/icons/klarna-checkout.svg', WC_PLUGIN_FILE ),
+ 'icon' => plugins_url( 'assets/images/onboarding/icons/kustom-checkout.svg', WC_PLUGIN_FILE ),
'plugin' => array(
'_type' => self::PLUGIN_TYPE_WPORG,
'slug' => 'klarna-checkout-for-woocommerce',
),
'links' => array(
- array(
- '_type' => PaymentsProviders::LINK_TYPE_PRICING,
- 'url' => 'https://www.klarna.com/us/business/payment-methods/',
- ),
array(
'_type' => PaymentsProviders::LINK_TYPE_ABOUT,
- 'url' => 'https://woocommerce.com/products/klarna-checkout/',
+ 'url' => 'https://woocommerce.com/products/kustom-checkout/',
),
array(
'_type' => PaymentsProviders::LINK_TYPE_TERMS,
- 'url' => 'https://www.klarna.com/us/legal/',
+ 'url' => 'https://www.kustom.co/legal',
),
array(
'_type' => PaymentsProviders::LINK_TYPE_DOCS,
- 'url' => 'https://woocommerce.com/document/klarna-checkout/',
+ 'url' => 'https://woocommerce.com/document/kustom-checkout/',
),
array(
'_type' => PaymentsProviders::LINK_TYPE_SUPPORT,
- 'url' => 'https://woocommerce.com/my-account/contact-support/?select=klarna-checkout',
+ 'url' => 'https://woocommerce.com/my-account/contact-support/?select=kustom-checkout',
),
),
),
diff --git a/plugins/woocommerce/tests/php/src/Internal/Admin/Suggestions/fixtures/expected-country-placements.php b/plugins/woocommerce/tests/php/src/Internal/Admin/Suggestions/fixtures/expected-country-placements.php
index 340fb8e8ca3..898d5ac76c6 100644
--- a/plugins/woocommerce/tests/php/src/Internal/Admin/Suggestions/fixtures/expected-country-placements.php
+++ b/plugins/woocommerce/tests/php/src/Internal/Admin/Suggestions/fixtures/expected-country-placements.php
@@ -78,7 +78,7 @@ return array(
'visa_as',
'airwallex',
'viva_wallet',
- 'klarna_checkout',
+ 'kustom_checkout',
'gocardless',
),
'other_express_checkout' => array(
@@ -117,7 +117,7 @@ return array(
'airwallex',
'viva_wallet',
'gocardless',
- 'klarna_checkout',
+ 'kustom_checkout',
'nexi_checkout',
),
'other_express_checkout' => array(
@@ -212,7 +212,7 @@ return array(
'visa_as',
'viva_wallet',
'gocardless',
- 'klarna_checkout',
+ 'kustom_checkout',
'nexi_checkout',
),
'other_express_checkout' => array(
@@ -242,7 +242,7 @@ return array(
'viva_wallet',
'paytrail',
'gocardless',
- 'klarna_checkout',
+ 'kustom_checkout',
),
'other_bnpl' => array(
'klarna',
@@ -293,7 +293,7 @@ return array(
'airwallex',
'viva_wallet',
'gocardless',
- 'klarna_checkout',
+ 'kustom_checkout',
'nexi_checkout',
),
'other_express_checkout' => array(
@@ -460,7 +460,7 @@ return array(
'mollie',
'visa_as',
'viva_wallet',
- 'klarna_checkout',
+ 'kustom_checkout',
),
'other_express_checkout' => array(
'amazon_pay',
@@ -479,7 +479,7 @@ return array(
'stripe',
'mollie',
'visa_as',
- 'klarna_checkout',
+ 'kustom_checkout',
'nexi_checkout',
),
'other_bnpl' => array(
@@ -593,7 +593,7 @@ return array(
'mollie',
'visa_as',
'viva_wallet',
- 'klarna_checkout',
+ 'kustom_checkout',
'nexi_checkout',
),
'other_express_checkout' => array(