Commit da02e07924f for woocommerce

commit da02e07924f3ec4d6aa8c94cdfafa60afdcc84ef
Author: Darren Ethier <darren@roughsmootheng.in>
Date:   Thu Aug 13 10:56:16 2026 -0400

    Fix Mastercard payment-card label branding (#67698)

diff --git a/docs/features/payments/payment-token-api.md b/docs/features/payments/payment-token-api.md
index b25eb92414b..e3407b96cec 100644
--- a/docs/features/payments/payment-token-api.md
+++ b/docs/features/payments/payment-token-api.md
@@ -333,7 +333,7 @@ Supported types/labels:

 ```php
 array(
-	'mastercard'       => __( 'MasterCard', 'woocommerce' ),
+	'mastercard'       => __( 'Mastercard', 'woocommerce' ),
 	'visa'             => __( 'Visa', 'woocommerce' ),
 	'discover'         => __( 'Discover', 'woocommerce' ),
 	'american express' => __( 'American Express', 'woocommerce' ),
diff --git a/plugins/woocommerce/changelog/fix-mastercard-branding b/plugins/woocommerce/changelog/fix-mastercard-branding
new file mode 100644
index 00000000000..b21d035b789
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-mastercard-branding
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Update the Mastercard payment-card label to use the brand's current spelling.
diff --git a/plugins/woocommerce/includes/wc-core-functions.php b/plugins/woocommerce/includes/wc-core-functions.php
index 44b41e612be..82403651ca9 100644
--- a/plugins/woocommerce/includes/wc-core-functions.php
+++ b/plugins/woocommerce/includes/wc-core-functions.php
@@ -1480,7 +1480,7 @@ function wc_get_credit_card_type_label( $type ) {
 	$labels = apply_filters(
 		'woocommerce_credit_card_type_labels',
 		array(
-			'mastercard'       => _x( 'MasterCard', 'Name of credit card', 'woocommerce' ),
+			'mastercard'       => _x( 'Mastercard', 'Name of credit card', 'woocommerce' ),
 			'visa'             => _x( 'Visa', 'Name of credit card', 'woocommerce' ),
 			'discover'         => _x( 'Discover', 'Name of credit card', 'woocommerce' ),
 			'american express' => _x( 'American Express', 'Name of credit card', 'woocommerce' ),
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/util/class-wc-tests-core-functions.php b/plugins/woocommerce/tests/legacy/unit-tests/util/class-wc-tests-core-functions.php
index 0fcbaf159ec..6041ad5df19 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/util/class-wc-tests-core-functions.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/util/class-wc-tests-core-functions.php
@@ -1000,7 +1000,7 @@ class WC_Tests_Core_Functions extends WC_Unit_Test_Case {
 	public function test_wc_get_credit_card_type_label() {
 		$this->assertEquals( 'Visa', wc_get_credit_card_type_label( 'visa' ) );
 		$this->assertEquals( 'JCB', wc_get_credit_card_type_label( 'jCb' ) );
-		$this->assertEquals( 'MasterCard', wc_get_credit_card_type_label( 'Mastercard' ) );
+		$this->assertEquals( 'Mastercard', wc_get_credit_card_type_label( 'Mastercard' ) );
 		$this->assertEquals( 'American Express', wc_get_credit_card_type_label( 'american_express' ) );
 		$this->assertEquals( 'American Express', wc_get_credit_card_type_label( 'american-express' ) );
 		$this->assertEquals( 'Cartes Bancaires', wc_get_credit_card_type_label( 'cartes_bancaires' ) );