Hey @awais300,
Do WooCommerce Payments provide any PHP function to charge the customer again via Stripe programmatically? If you can point me to that function that would be great.
Charging customers is all done via the WooCommerce Payments API which as my colleague mentioned, is accessed via a Jetpack connection.
There is no single PHP function you can call in order to charge a customer again programmatically. This is a fairly complex development topic and not something that’s within the scope of support we’re able to give.
If you’re looking for an easy way to generate additional charges for customers then you might be interested in WooCommerce Subscriptions which integrates deeply with WooCommerce Payments. You could then use AutomateWoo to control the billing schedule and charge customers at the right time.
You can also visit the WooCommerce Facebook group or the #developers
channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.
I hope that helps!
Kind regards,