Skip to content

Commit

Permalink
Send blog timezone to WooPay (#9325)
Browse files Browse the repository at this point in the history
  • Loading branch information
alefesouza committed Aug 26, 2024
1 parent ad1395d commit 1a1616e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions changelog/fix-send-blog-timezone-to-woopay
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: Send blog timezone to WooPay.


1 change: 1 addition & 0 deletions includes/woopay/class-woopay-session.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ public static function get_init_session_request( $order_id = null, $key = null,
'blog_url' => get_site_url(),
'blog_checkout_url' => ! $is_pay_for_order ? wc_get_checkout_url() : $order->get_checkout_payment_url(),
'blog_shop_url' => get_permalink( wc_get_page_id( 'shop' ) ),
'blog_timezone' => wp_timezone_string(),
'store_api_url' => self::get_store_api_url(),
'account_id' => $account_id,
'test_mode' => WC_Payments::mode()->is_test(),
Expand Down

0 comments on commit 1a1616e

Please sign in to comment.