Skip to content

Commit

Permalink
Fix 'is_live' value in account summary (#3614)
Browse files Browse the repository at this point in the history
* return 'is_live' as true in the account summary response when test mode is disabled in gateway settings and charge is enabled in the Stripe account

* add changelog
  • Loading branch information
Mayisha authored Nov 19, 2024
1 parent 60a2757 commit 733fad6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
* Update - Improve accuracy of webhook status information displayed in settings page.
* Tweak - Standardize ECE Express payment buttons on Pay for Order page to match cart and checkout itemization behavior.
* Tweak - Remove duplicate notice about the new checkout experience.
* Fix - Fix ECE modal not loading on pay for order page when coupon is applied
* Fix - Fix ECE modal not loading on pay for order page when coupon is applied.
* Fix - Return 'is_live' as true in account summary response when test mode is disabled in gateway settings and charge is enabled in Stripe account.

= 8.9.0 - 2024-11-14 =
* Update - Enhance webhook processing to enable retrieving orders using payment_intent metadata.
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/class-wc-rest-stripe-account-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function get_account_summary() {
'supported' => $this->account->get_supported_store_currencies(),
],
'country' => $account['country'] ?? WC()->countries->get_base_country(),
'is_live' => $account['charges_enabled'] ?? false,
'is_live' => WC_Stripe_Mode::is_live() && $account['charges_enabled'] ?? false,
'test_mode' => WC_Stripe_Mode::is_test(),
]
);
Expand Down
3 changes: 2 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
* Update - Improve accuracy of webhook status information displayed in settings page.
* Tweak - Standardize ECE Express payment buttons on Pay for Order page to match cart and checkout itemization behavior.
* Tweak - Remove duplicate notice about the new checkout experience.
* Fix - Fix ECE modal not loading on pay for order page when coupon is applied
* Fix - Fix ECE modal not loading on pay for order page when coupon is applied.
* Fix - Return 'is_live' as true in account summary response when test mode is disabled in gateway settings and charge is enabled in Stripe account.

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

0 comments on commit 733fad6

Please sign in to comment.