Refund processed twice from one click
-
Hi,
We processed a partial refund earlier within WooCommerce (via Stripe) but it seemed to have duplicated the process and rather than 50% of the order (1 product) being refunded as desired, the whole order was refunded (both products).
I noticed in the debug log there’s this WP Error Object response around the same time the refund was being processed, but not sure what would have caused this.
2023-04-05T11:30:11+00:00 DEBUG ====Stripe Version: 7.2.0==== ====Start Log==== Error Response: WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] => cURL error 28: Resolving timed out after 10000 milliseconds ) ) [error_data] => Array ( ) [additional_data:protected] => Array ( ) ) ====End Log====
What’s strange, is the first record of the refund was processed by a shop manager as expected and then straight away the second (duplicated) refund was marked as processed by myself (admin).
Also, only one of the products had its stock levels put back.
For reference, here’s the system status:
` ### WordPress Environment ### WordPress address (URL): https://whitecoco.co.uk Site address (URL): https://whitecoco.co.uk WC Version: 7.5.1 REST API Version: ? 7.5.1 WC Blocks Version: ? 9.6.6 Action Scheduler Version: ? 3.5.4 Log Directory Writable: ? WP Version: 6.2 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: en_GB External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 8.0.27 PHP Post Max Size: 256 MB PHP Time Limit: 300 PHP Max Input Vars: 2500 cURL Version: 7.86.0 OpenSSL/1.1.1s-fips SUHOSIN Installed: – MySQL Version: 10.4.26-MariaDB-log Max Upload Size: 128 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 7.5.1 WC Database Prefix: 40_ Total Database Size: 654.01MB Database Data Size: 398.27MB Database Index Size: 255.74MB 40_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB + Engine InnoDB 40_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 40_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 40_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB 40_woocommerce_order_items: Data: 3.52MB + Index: 1.52MB + Engine InnoDB 40_woocommerce_order_itemmeta: Data: 24.55MB + Index: 19.06MB + Engine InnoDB 40_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB 40_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 40_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 40_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 40_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 40_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 40_actionscheduler_actions: Data: 80.11MB + Index: 92.39MB + Engine InnoDB 40_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 40_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 40_actionscheduler_logs: Data: 68.11MB + Index: 47.13MB + Engine InnoDB 40_ajaxsearchpro: Data: 0.05MB + Index: 0.00MB + Engine InnoDB 40_ajaxsearchpro_priorities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 40_ajaxsearchpro_statistics: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_asp_index: Data: 7.52MB + Index: 7.03MB + Engine InnoDB 40_asp_synonyms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 40_cmplz_cookiebanners: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_cmplz_cookies: Data: 0.05MB + Index: 0.00MB + Engine InnoDB 40_cmplz_services: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_commentmeta: Data: 0.27MB + Index: 0.27MB + Engine InnoDB 40_comments: Data: 11.52MB + Index: 9.09MB + Engine InnoDB 40_csp3_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 40_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 40_jetpack_waf_blocklog: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 40_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 40_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_mailchimp_jobs: Data: 7.42MB + Index: 0.00MB + Engine InnoDB 40_options: Data: 36.08MB + Index: 2.28MB + Engine InnoDB 40_pimwick_gift_card: Data: 0.06MB + Index: 0.02MB + Engine InnoDB 40_pimwick_gift_card_activity: Data: 0.08MB + Index: 0.02MB + Engine InnoDB 40_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_pmxi_hash: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_pmxi_images: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_pmxi_imports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_pmxi_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_pmxi_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_postexpirator_debug: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_postmeta: Data: 82.61MB + Index: 46.13MB + Engine InnoDB 40_posts: Data: 21.52MB + Index: 6.06MB + Engine InnoDB 40_redirection_404: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 40_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 40_redirection_items: Data: 0.08MB + Index: 0.09MB + Engine InnoDB 40_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 40_stock_log: Data: 0.19MB + Index: 0.00MB + Engine InnoDB 40_termmeta: Data: 0.11MB + Index: 0.16MB + Engine InnoDB 40_terms: Data: 0.05MB + Index: 0.03MB + Engine InnoDB 40_term_relationships: Data: 1.47MB + Index: 0.31MB + Engine InnoDB 40_term_taxonomy: Data: 0.06MB + Index: 0.03MB + Engine InnoDB 40_usermeta: Data: 8.52MB + Index: 6.03MB + Engine InnoDB 40_users: Data: 0.44MB + Index: 0.36MB + Engine InnoDB 40_usin_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 40_usin_user_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 40_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB 40_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB 40_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_wc_customer_lookup: Data: 1.52MB + Index: 0.53MB + Engine InnoDB 40_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 40_wc_order_coupon_lookup: Data: 0.05MB + Index: 0.06MB + Engine InnoDB 40_wc_order_product_lookup: Data: 4.52MB + Index: 6.06MB + Engine InnoDB 40_wc_order_stats: Data: 2.52MB + Index: 1.17MB + Engine InnoDB 40_wc_order_tax_lookup: Data: 0.27MB + Index: 0.20MB + Engine InnoDB 40_wc_product_attributes_lookup: Data: 0.14MB + Index: 0.13MB + Engine InnoDB 40_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 40_wc_product_meta_lookup: Data: 0.33MB + Index: 0.50MB + Engine InnoDB 40_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 40_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 40_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 40_wdp_orders: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 40_wdp_order_items: Data: 0.02MB + Index: 0.06MB + Engine InnoDB 40_wdp_rules: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 40_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 40_wfconfig: Data: 1.28MB + Index: 0.00MB + Engine InnoDB 40_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_wffilemods: Data: 10.52MB + Index: 0.00MB + Engine InnoDB 40_wfhits: Data: 1.02MB + Index: 0.08MB + Engine InnoDB 40_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 40_wfissues: Data: 0.05MB + Index: 0.06MB + Engine InnoDB 40_wfknownfilelist: Data: 5.52MB + Index: 0.00MB + Engine InnoDB 40_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 40_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_wflogins: Data: 0.16MB + Index: 0.03MB + Engine InnoDB 40_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 40_wfls_role_counts: Data: 0.00MB + Index: 0.00MB + Engine MEMORY 40_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB 40_wfpklist_template_data: Data: 0.03MB + Index: 0.00MB + Engine InnoDB 40_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 40_wfstatus: Data: 1.02MB + Index: 0.09MB + Engine InnoDB 40_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_woo_shippment_provider: Data: 0.06MB + Index: 0.00MB + Engine InnoDB 40_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 40_yith_wcwl: Data: 0.08MB + Index: 0.02MB + Engine InnoDB 40_yith_wcwl_lists: Data: 0.06MB + Index: 0.03MB + Engine InnoDB 40_yoast_indexable: Data: 11.09MB + Index: 7.20MB + Engine InnoDB 40_yoast_indexable_hierarchy: Data: 1.05MB + Index: 0.20MB + Engine InnoDB 40_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 40_yoast_primary_term: Data: 0.16MB + Index: 0.16MB + Engine InnoDB 40_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ### Post Type Counts ### attachment: 14036 custom_css: 1 custom_order_status: 1 elementor_library: 1 feedback: 1 mc4wp-form: 1 nav_menu_item: 48 oembed_cache: 7 page: 33 popup: 5 popup_theme: 8 post: 4 postman_sent_mail: 500 product: 1648 product_variation: 3072 revision: 2322 seedprod: 2 shop_coupon: 29 shop_order: 41708 shop_order_refund: 5872 stores: 2 wc_whsm: 1 wp_global_styles: 1 wpcf7_contact_form: 4 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (33) ### Complianz | GDPR/CCPA Cookie Consent: by Really Simple Plugins – 6.4.3 Contact Form 7: by Takayuki Miyoshi – 5.7.5.1 Custom Order Status for WooCommerce: by Tyche Softwares – 2.2.1 Elementor: by Elementor.com – 3.11.2 Facebook for WooCommerce: by Facebook – 3.0.13 Imsanity: by Exactly WWW – 2.8.2 Jetpack: by Automattic – 12.0 Mailchimp for WooCommerce: by Mailchimp – 2.8 MC4WP: Mailchimp for WordPress: by ibericode – 4.9.1 MainWP Child: by MainWP – 4.4.0.4 Max Mega Menu: by megamenu.com – 3.1.1 Popup Maker: by Popup Maker – 1.18.1 Post SMTP: by Post SMTP – 2.4.6 PW WooCommerce Gift Cards Pro: by Pimwick LLC – 1.432 Rearrange Woocommerce Products: by Aslam Doctor – 4.1.2 Redirection: by John Godley – 5.3.10 Storefront Product Sharing: by WooCommerce – 1.0.6 TP Product Image Flipper for Woocommerce: by TP Plugins – 1.0.7 TP WooCommerce Product Gallery: by TP Plugins – 1.1.1 Advanced Shipment Tracking for WooCommerce: by zorem – 3.5.3 Print Invoice & Delivery Notes for WooCommerce: by Tyche Softwares – 4.7.2 WooCommerce Stripe Gateway: by WooCommerce – 7.2.0 Gift Wrapper: by Sagehen Studio – 5.2.7 WooCommerce PayPal Payments: by WooCommerce – 2.0.4 WooCommerce POS Pro: by kilbot – 0.4.19 WooCommerce POS: by kilbot – 0.4.27 WooCommerce Product Stock Alert: by WC Marketplace – 2.7.1 Woocommerce Products Per Page: by Jeroen Sormani – 1.2.7 Sequential Order Numbers for WooCommerce: by SkyVerge – 1.9.7 WooCommerce: by Automattic – 7.5.1 Wordfence Security: by Wordfence – 7.9.2 Yoast SEO: by Team Yoast – 20.2.1 YITH WooCommerce Wishlist: by YITH – 3.18.0 ### Inactive Plugins (1) ### PublishPress Future: by PublishPress – 2.9.2 ### Must Use Plugins (2) ### Elementor Safe Mode: by Elementor.com – 1.0.0 StackCache: by Stack CP – ### Settings ### API Enabled: ? Force SSL: – Currency: GBP (£) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) pw gift card (pw-gift-card) simple (simple) variable (variable) yith-composite (yith-composite) 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: – Order datastore: WC_Order_Data_Store_CPT ### WC Pages ### Shop base: #10 - / Basket: #11 - /basket/ Checkout: #12 - /checkout/ My account: #13 - /my-account/ Terms and conditions: #65 - /returns/ ### Theme ### Name: White Coco Version: 1.0.0 Author URL: https://prystine.co.uk Child Theme: ? Parent Theme Name: Storefront Parent Theme Version: 4.2.0 Parent Theme Author URL: https://woocommerce.com/ WooCommerce Support: ? ### Templates ### Overrides: storefront-child-theme-master/woocommerce/emails/customer-completed-order.php storefront-child-theme-master/woocommerce/emails/customer-invoice.php storefront-child-theme-master/woocommerce/global/quantity-input.php version 4.0.0 is out of date. The core version is 7.4.0 storefront-child-theme-master/woocommerce/single-product/product-image.php storefront-child-theme-master/woocommerce/single-product.php Outdated Templates: ? Learn how to update ### Pimwick Plugins ### PW WooCommerce Gift Cards Pro: License key: PW-62f0b94d35928 Result: success Cached: 2023-04-05 ### WooCommerce PayPal Payments ### Onboarded: ? Shop country code: GB WooCommerce currency supported: ? Advanced Card Processing available in country: ? Pay Later messaging available in country: ? Webhook status: ? Vault enabled: ? Logging enabled: – Reference Transactions: – Used PayPal Checkout plugin: – Tracking enabled: – ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience product-variation-management settings Daily Cron: ? Next scheduled: 2023-04-06 02:06:06 +01:00 Options: ? Notes: 126 Onboarding: completed ### Action Scheduler ### Complete: 10,601 Oldest: 2023-03-05 20:38:29 +0000 Newest: 2023-04-05 21:22:14 +0100 Failed: 176 Oldest: 2020-12-07 16:31:29 +0000 Newest: 2023-03-21 19:46:07 +0000 Pending: 2 Oldest: 2023-04-06 09:19:11 +0100 Newest: 2023-04-06 18:44:07 +0100 ### Status report information ### Generated at: 2023-04-05 21:35:26 +01:00 `
The page I need help with: [log in to see the link]
- The topic ‘Refund processed twice from one click’ is closed to new replies.