You can enable auto refund feature for canceling or refunding payments of canceled orders.
You can enable this feature by following these steps,
- Login to your dashboard.
- Navigate to “General Settings -> Payment Gateways“
- Select Stripe (This feature is only offered with Stripe)
- Set “Refund Canceled Orders” setting to “Automatically“.
- Save settings.