Skip to content

Commit 65a0790

Browse files
Mayishamalithsen
authored andcommitted
Fix: express checkout displays wrong amount for JPY (#4395)
* add missing currency_decimals data * add changelog
1 parent ee7feb8 commit 65a0790

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Fix - Adds an exception to be thrown when the order item quantity is zero, during the retrieval of level 3 data from an order.
66
* Tweak - Track charge completed via webhooks in order notes
77
* Fix - Ensure that we migrate payment_request_button_size=medium on upgrade
8+
* Fix - Show correct price in express checkout for zero decimal currencies
89

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

includes/payment-methods/class-wc-stripe-express-checkout-helper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ public function get_checkout_data() {
307307
$data = [
308308
'url' => wc_get_checkout_url(),
309309
'currency_code' => strtolower( get_woocommerce_currency() ),
310+
'currency_decimals' => wc_get_price_decimals(),
310311
'country_code' => substr( get_option( 'woocommerce_default_country' ), 0, 2 ),
311312
'needs_shipping' => 'no',
312313
'needs_payer_phone' => 'required' === get_option( 'woocommerce_checkout_phone_field', 'required' ),

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,6 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
116116
* Fix - Adds an exception to be thrown when the order item quantity is zero, during the retrieval of level 3 data from an order.
117117
* Tweak - Track charge completed via webhooks in order notes
118118
* Fix - Ensure that we migrate payment_request_button_size=medium on upgrade
119+
* Fix - Show correct price in express checkout for zero decimal currencies
119120

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

0 commit comments

Comments
 (0)