{"id":18927663,"date":"2026-06-03T14:07:31","date_gmt":"2026-06-03T14:07:31","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/automatic-delayed-capture\/"},"modified":"2026-06-03T14:07:31","modified_gmt":"2026-06-03T14:07:31","slug":"automatic-delayed-capture","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/automatic-delayed-capture\/","title":{"rendered":"Automatic Delayed Capture"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I understand that there are no settings for creating an automatic delayed capture in the plug-in. I think this would be a good feature to implement. Including a way to select how many days after authorisation to capture, or automatic capture 6 hours before cancellation which I believe is the Stripe default. This would allow customers a small grace period to change their mind and not end up costing the shop any fees.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If this is not possible, I would like to implement this through some other means.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Google AI suggest this code in functions.php, after setting the Stripe plug-in to manual capture.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_filter( 'woocommerce_stripe_payment_intent_args', 'force_stripe_24h_delayed_capture', 10, 2 );<br \/>function force_stripe_24h_delayed_capture( $args, $order ) {<br \/>    \/\/ Only apply if the WooCommerce plugin is set to capture later<br \/>    if ( isset( $args&#091;'capture_method'] ) &amp;&amp; $args&#091;'capture_method'] === 'manual' ) {<br \/>        $args&#091;'capture_method'] = 'automatic_delayed';<br \/>        <br \/>        \/\/ Tells Stripe to automatically capture 1 day (24 hours) after authorization<br \/>        $args&#091;'payment_method_options']&#091;'card']&#091;'capture_delay_days'] = 1;<br \/>    }<br \/>    return $args;<br \/>}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Are there any experts on hand to verify this as a good solution?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Many thanks<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">JS<br \/><\/p>\n","protected":false},"template":"","class_list":["post-18927663","topic","type-topic","status-publish","hentry","topic-tag-new-feature-request"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18927663","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18927663\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18927663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}