To integrate WooCommerce with Razorpay, follow the steps given below:
- Create and activate a Razorpay account.
- Install the Razorpay plugin in the WordPress Plugin Manager
- Open your WooCommerce account
- Go to Settings
- Press the ‘Checkout/Payment Gateways’ tab
- Select Razorpay to edit the settings
- Enable the payment method
- To automatically capture payments, set the payment action to ‘Authorize and Capture’
- Input your ‘KEY_ID’ and ‘KEY_SECRET’ created from the Razorpay Dashboard
- Save the changes