how to change capture_method to manual for one product
-
Hi I need to capture payment manually for a product or a category of product. I have seen the common feature available for all product on admin capture option. but I need to allow for a product or a category of product .I have tried the following filter common to all product making capture option Capture charge immediately option enabled on admin . but does not worked.
add_filter('wc_stripe_payment_intent_args', function($args, $order){ $args['capture_method'] ='manual'; return $args; },10, 2);
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘how to change capture_method to manual for one product’ is closed to new replies.