Skip to content

Commit bb6b12a

Browse files
diegocurbelomalithsen
authored andcommitted
Use platform PMC Id constants for the Checkout rendering (#4415)
* Use the platform payment method configuration id constant for the checkout
1 parent 52c168d commit bb6b12a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* Fix - Show correct price in express checkout for zero decimal currencies
99
* Fix - Fixes a possible fatal error with Multibanco purchases when generating the email instructions.
1010
* Fix - Fix buggy unsaved changes warning in settings page
11+
* Fix - Use the platform's payment method configuration id constant when rendering the Optimized Checkout
1112

1213
= 9.5.2 - 2025-05-22 =
1314
* Add - Implement custom database cache for persistent caching with in-memory optimization.

includes/class-wc-stripe-payment-method-configurations.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,12 @@ private static function get_payment_method_configuration_from_stripe() {
165165
}
166166

167167
/**
168-
* Get the parent configuration ID.
168+
* Get the WooCommerce Platform payment method configuration id.
169169
*
170-
* @return string|null
170+
* @return string
171171
*/
172172
public static function get_parent_configuration_id() {
173-
return self::get_primary_configuration()->parent ?? null;
173+
return WC_Stripe_Mode::is_test() ? self::TEST_MODE_CONFIGURATION_PARENT_ID : self::LIVE_MODE_CONFIGURATION_PARENT_ID;
174174
}
175175

176176
/**

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,6 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
119119
* Fix - Show correct price in express checkout for zero decimal currencies
120120
* Fix - Fixes a possible fatal error with Multibanco purchases when generating the email instructions.
121121
* Fix - Fix buggy unsaved changes warning in settings page
122+
* Fix - Use the platform's payment method configuration id constant when rendering the Optimized Checkout
122123

123124
[See changelog for full details across versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).

0 commit comments

Comments
 (0)