WooCommerce and Stripe: Refund Processing Template
When a WooCommerce order is marked refunded, this template issues the matching Stripe refund automatically and updates the order status.
What It Builds
A Webhook trigger receives the refund event from WooCommerce. A Connector node on the woocommerce connector reads the order with get-order to confirm the refunded amount, then a Connector node on the stripe connector issues the refund against the original charge. A final woocommerce step records the result with update-order so the order and payment stay in sync. Spojit runs the whole flow within seconds of the refund being marked.
The Prompt
Paste this into Miraxa and it builds the workflow, connecting the tools for you:
Build a workflow with a Webhook trigger that fires when a WooCommerce order is marked refunded. Look up the order in WooCommerce to get the customer, refunded amount, and original payment reference, then issue a matching refund in Stripe against that charge. Finally update the WooCommerce order with the Stripe refund ID and a note, and send me a Slack message in #refunds with the order number and amount.
Connectors Used
- woocommerce - reads the order (
get-order) and records the outcome (update-order). Triggered by a Webhook on the refund event. - stripe - issues the refund against the original charge.
- slack - posts a confirmation to your team channel.
Customize It
Change the #refunds channel to your own, or drop the Slack step entirely. Add a partial-refund check so only refunds over a chosen amount route through, or insert a Human approval node before the Stripe step so a finance teammate signs off on large refunds first.
Tips
- Verify the WooCommerce webhook with a signing connection so only genuine refund events run the workflow.
- Use Direct mode on each Connector node here: the steps are predictable single-tool calls, so there is no AI cost.
- Confirm the Stripe charge belongs to the order before refunding so you never refund the wrong payment.