woocommerce / woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
https://wordpress.org/plugins/woocommerce-gateway-stripe/
232 stars 204 forks source link

Orders captured later do not show Stripe fee #3507

Open Prin-S opened 1 day ago

Prin-S commented 1 day ago

Describe the bug When Issue an authorization on checkout, and capture later is enabled, the order does not show the Stripe fee even after having captured it. On the other hand, the Stripe fee is shown when Issue an authorization on checkout, and capture later is disabled.

To Reproduce

  1. Check the Issue an authorization on checkout, and capture later box in WooCommerce > Settings > Payments > Stripe > Settings.
  2. Make a purchase on the site.
  3. Go to this order in WooCommerce > Orders.
  4. Capture the order by changing the order status to Processing or Completed.
  5. Notice that no Stripe fee is shown on the order detail page.

Expected behavior The Stripe fee should be shown when the order has been captured.

Screenshots Image

Environment (please complete the following information):

Additional context

System Status Report ``` ### WordPress Environment ### WordPress address (URL): [Redacted] Site address (URL): [Redacted] WC Version: 9.3.3 Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site. Action Scheduler Version: ✔ 3.8.1 Log Directory Writable: ✔ WP Version: 6.6.2 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: ✔ ### Server Environment ### Server Info: nginx PHP Version: 8.2.24 PHP Post Max Size: 2 GB PHP Time Limit: 1200 PHP Max Input Vars: 6144 cURL Version: 8.10.1 OpenSSL/1.1.1w SUHOSIN Installed: – MySQL Version: 10.6.19-MariaDB-log Max Upload Size: 2 GB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### [REDACTED] ### Post Type Counts ### af_crt_order_rstrct: 1 af_wc_donat: 3 attachment: 30 aw_workflow: 26 bookable_person: 6 bookable_resource: 6 custom_css: 1 event_ticket: 4 lty_lottery_ticket: 2 mailpoet_page: 1 page: 20 post: 1 product: 106 product_variation: 74 revision: 74 shop_coupon: 22 shop_order: 232 shop_order_refund: 11 shop_subscription: 78 wc_booking: 9 wc_membership_plan: 1 wp_font_face: 33 wp_font_family: 12 wp_global_styles: 2 wp_navigation: 1 wp_template: 4 wp_template_part: 2 yay-currency-manage: 2 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (2) ### WooCommerce Stripe Gateway: by WooCommerce – 8.7.0 WooCommerce: by Automattic – 9.3.3 ### Inactive Plugins (56) ### Akismet Anti-spam: Spam Protection: by Automattic - Anti-spam Team – 5.3.3 AutomateWoo: by WooCommerce – 6.1.0 AutomateWoo - Birthdays Add-on: by WooCommerce – 1.3.39 (update to version 1.3.42 is available) AutomateWoo - Refer A Friend Add-on: by WooCommerce – 2.7.22 (update to version 2.8.0 is available) Bookings Helper: by WooCommerce – 1.0.7 Cart and Order Restrictions: by Addify – 1.2.1 Check Conflicts: by ioannup – 1.1.6 Code Snippets: by Code Snippets Pro – 3.6.5.1 Customize My Account Page For Woocommerce: by WPEverest – 0.4.8 Custom Start Date For WooCommerce Subscriptions: by Launch & Sell – 1.4.1 Google for WooCommerce: by WooCommerce – 2.8.5 Health Check & Troubleshooting: by The WordPress.org community – 1.7.1 Jetpack: by Automattic – 14.0-a.1 Jetpack Protect: by Automattic - Jetpack Security team – 3.0.2 Loco Translate: by Tim Whitlock – 2.6.11 Lottery for WooCommerce: by Flintop – 10.2.0 MailPoet: by MailPoet – 5.1.1 Photography for WooCommerce: by Kestrel – 1.2.3 Pick List for WooCommerce: by Consortia – 2.4.25 (update to version 2.4.27 is available) Pressable Cache Management: by Pressable CS Team – 4.2.4 Pressable OnePress Login: by Pressable – 1.3.2 Query Monitor: by John Blackbourn – 3.16.4 Say What?: by Ademti Software – 2.2.4 Self-service Dashboard for WooCommerce Subscriptions: by eCommerce Tools – 3.2.1 Woo All Products For Subscriptions: by Woo – 6.0.2 Woo Back In Stock Notifications: by Woo – 1.7.2 (update to version 2.0.3 is available) WooCommerce.com Update Manager: by Automattic – 1.0.3 WooCommerce Accommodation Bookings: by WooCommerce – 1.2.8 WooCommerce Bookings: by WooCommerce – 2.1.5 (update to version 2.1.7 is available) WooCommerce Catalog Visibility Options: by Lucas Stark – 3.3.4 WooCommerce Composite Products: by Woo – 10.0.3 (update to version 10.1.2 is available) WooCommerce Deposits: by WooCommerce – 2.3.1 (update to version 2.3.2 is available) WooCommerce Gateway Affirm: by WooCommerce – 2.4.1 WooCommerce Local Pickup Plus: by SkyVerge – 2.11.5 WooCommerce Memberships: by SkyVerge – 1.26.8 (update to version 1.26.9 is available) WooCommerce Order Barcodes: by WooCommerce – 1.7.5 (update to version 1.8.0 is available) WooCommerce Product Add-Ons: by Woo – 7.0.3 (update to version 7.1.1 is available) WooCommerce Product Bundles: by Woo – 8.1.0 (update to version 8.1.1 is available) WooCommerce Product Vendors: by WooCommerce – 2.3.0 WooCommerce Shipping & Tax: by WooCommerce – 2.8.1 (update to version 2.8.2 is available) WooCommerce Shipping Per Product v2: by WooCommerce – 2.5.7 WooCommerce Square: by WooCommerce – 4.8.1 WooCommerce Subscriptions: by WooCommerce – 6.6.2 (update to version 6.7.0 is available) WooCommerce Subscriptions - Custom Price String: by Prospress Inc. – 1.0.5 WooCommerce Subscriptions - Preserve Billing Schedule: by Prospress Inc. – 1.0.0 WooCommerce Subscriptions CSV Importer and Exporter: by Prospress Inc – 2.1.0 WooCommerce Subscriptions Gifting: by WooCommerce – 2.7.0 (update to version 2.8.0 is available) WooCommerce USPS Shipping: by WooCommerce – 5.0.0 Woo Conditional Shipping and Payments: by Woo – 2.0.3 Woo Gift Cards: by Woo – 1.16.15 (update to version 2.0.4 is available) Woo Min/Max Quantities: by Woo – 5.0.1 WooPayments: by WooCommerce – 8.1.1 (update to version 8.3.0 is available) WordPress Importer: by wordpressdotorg – 0.8.2 WP Crontrol: by John Blackbourn – 1.17.0 WP Mail Logging: by WP Mail Logging Team – 1.12.0 YayCurrency Pro: by YayCommerce – 3.0.1 ### Dropin Plugins () ### advanced-cache.php: advanced-cache.php object-cache.php: Memcached ### Settings ### Legacy API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: booking (booking) bundle (bundle) competition (competition) composite (composite) external (external) grouped (grouped) lottery (lottery) mix and match (mix-and-match) photography (photography) simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ✔ Enforce Approved Product Download Directories: ✔ HPOS feature enabled: – Order datastore: WC_Order_Data_Store_CPT HPOS data sync enabled: – ### Logging ### Enabled: ✔ Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2 Retention period: 30 days Level threshold: – Log directory size: 3 MB ### WC Pages ### Shop base: #5 - /shop/ Cart: #6 - /cart/ - Contains the woocommerce/cart block Checkout: #7 - /checkout/ - Contains the woocommerce/checkout block My account: #8 - /my-account/ Terms and conditions: ❌ Page not set ### Theme ### Name: Storefront Version: 4.6.0 Author URL: https://woocommerce.com/ Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ✔ ### Templates ### Overrides: – ### Admin ### Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customize-store customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks pattern-toolkit-full-composability product-custom-fields remote-inbox-notifications remote-free-extensions payment-gateway-suggestions printful shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page launch-your-store Disabled Features: experimental-blocks minified-js product-pre-publish-modal settings async-product-editor-category-field product-editor-template-system blueprint reactify-classic-payments-settings Daily Cron: ✔ Next scheduled: 2024-10-09 13:27:00 +00:00 Options: ✔ Notes: 105 Onboarding: completed ### Action Scheduler ### Complete: 6,268 Oldest: 2024-09-07 04:13:27 +0000 Newest: 2024-10-08 22:06:38 +0000 Failed: 2,918 Oldest: 2023-10-05 08:35:54 +0000 Newest: 2024-10-08 22:07:33 +0000 Pending: 29 Oldest: 2024-10-08 22:09:33 +0000 Newest: 2025-06-13 05:47:37 +0000 ### Status report information ### Generated at: 2024-10-08 22:07:39 +00:00 ```
Prin-S commented 12 hours ago

8772480-zd-a8c