When I set up WooCommerce as a payment method, the user is redirected to the homepage after checking out.
If you haven’t set it up, go to Woocommerce> Settings> Advanced to choose the Checkout and Cart page that will be shown to the user. Please follow these steps to fix this issue.
Setting Up Booking Page
Go to WooCommerce>Settings>Advanced to set up the page for the checkout process
Scroll down to the Page Setup, find the Cart Page, Checkout Page and My Account Page to select the page to display.
For the Cart Page, choose the ” Cart “
For the Checkout Page, choose the ” Checkout Woo “
For the My Account Page, choose the” My Account ” and click Save Changes to finish it