Skip to content

Commit

Permalink
Fix banner typo and transaction id
Browse files Browse the repository at this point in the history
  • Loading branch information
roykho committed Oct 19, 2018
1 parent fe3b768 commit 0a744ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
*** Changelog ***

= 4.1.12 - 2018-10-19 =
* Fix - Typo on notice banner.
* Fix - On auth/capture scenario, error can occur when completing the order in backend.

= 4.1.11 - 2018-10-17 =
* Fix - Explicitly set 3DS source id to prevent 3DS source not charging when not required.
* Fix - Prevent Stripe JS failed live/test check from throwing JS error.
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/class-wc-stripe-admin-notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function stripe_check_environment() {
// To be removed 4.1.12.
if ( empty( $show_styles_notice ) ) {
if ( version_compare( WC_STRIPE_VERSION, '4.1.12', '<' ) ) {
$message = __( 'Action required: In January 2019 we will be introducing changes that could effect how Stripe looks in your checkout. <a href="https://docs.woocommerce.com/document/stripe/#section-45" target="_blank">Learn more</a> about how to make sure your site continues to look great.', 'woocommerce-gateway-stripe' );
$message = __( 'Action required: In January 2019 we will be introducing changes that could affect how Stripe looks in your checkout. <a href="https://docs.woocommerce.com/document/stripe/#section-45" target="_blank">Learn more</a> about how to make sure your site continues to look great.', 'woocommerce-gateway-stripe' );

$this->add_admin_notice( 'styles', 'notice notice-warning', $message, true );

Expand Down
2 changes: 1 addition & 1 deletion includes/class-wc-stripe-order-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public function capture_payment( $order_id ) {
// Store other data such as fees
WC_Stripe_Helper::is_wc_lt( '3.0' ) ? update_post_meta( $order_id, '_transaction_id', $result->id ) : $order->set_transaction_id( $result->id );

$this->update_fees( $order, $result->balance_transaction );
$this->update_fees( $order, $result->balance_transaction->id );
}

// This hook fires when admin manually changes order status to processing or completed.
Expand Down

0 comments on commit 0a744ce

Please sign in to comment.