Troubleshooting & FAQs
Troubleshoot common errors and find answers to frequently asked questions about WooCommerce Ecommerce Plugin integration.
- Auto-webhook support is available for Razorpay Woocommerce Plugin from v3.5.0 onwards.
- Once you save the changes on the WooCommerce dashboard, webhooks are auto configured for events:
payment.authorized
andrefund.created
. You do not have to configure it on the Razorpay Dashboard.
To set up webhooks:
- In the WordPress Dashboard, click WooCommerce and navigate to Settings.
- In the Payments tab, enter the Key ID and Key Secret.
- Click Save Changes.
2. My webhooks are not auto-configured since I am not using the upgraded version of Razorpay WooCommerce plugin. How do I manually configure webhooks?
If you are not using the upgraded version of Razorpay WooCommerce plugin, you can manually configure the following events:
payment.authorized
payment.pending
refund.created
virtual_account.credited
subscription.cancelled
subscription.paused
subscription.resumed
To set up webhooks manually:
- Log in to the and navigate to Account & Settings.
- In the Website and app settings section, click Webhooks.
- Click + Add New Webhook.
- In the Webhook Setup pop-up page:
-
Enter the URL where you want to receive the webhook payload when an event is triggered. We recommend using an HTTPS URL.
Handy Tips
You can set up to 30 URLs to receive Webhook notifications. Webhooks can only be delivered to public URLs. If you attempt to save a localhost endpoint as part of a webhook setup, you will notice an error. Know more about
. -
Enter a Secret for the webhook endpoint. The secret is used to validate that the webhook is from Razorpay. Do not expose the secret publicly. Know more about
.Handy Tips
- When setting up the webhook, you will be asked to specify a secret. Using this secret, you can validate that the webhook is from Razorpay. Entering the secret is optional but recommended. The secret should never be exposed publicly.
- The webhook secret does not need to be the merchant secret key provided by Razorpay.
-
In the Alert Email field, enter the email address to which the notifications should be sent in case of webhook failure. You will receive webhook deactivation notifications to this email address.
-
Select the required events from the list of Active Events.
-
- Click Create Webhook. After you set a webhook, it appears on the list of webhooks.
- You can select the webhook and click Edit to make more changes.
To verify if webhooks are enabled:
- Log in to the and navigate to Account & Settings.
- In the Website and app settings section, click Webhooks.
- Select the relevant webhook URL.
- On the right panel, check if the status for
payment.authorized
andrefund.created
is enabled.
No, partial payments are not supported on WooCommerce. You can either choose to deduct the full amount or make two separate orders and the customer will have to pay twice for it.
5. I am getting the following error message RAZORPAY ERROR: Order creation failed with the message: 'The API key provided is invalid'
. Why?
Verify and confirm that the API keys you have provided within WordPress are accurate. If the issue persists, contact our
.6. I am getting the following php error in the Razorpay plugin:"PHP message: ORDER NUMBER 57999:webhook conflict over for razorpay order: order_LWVB71vGYh7nEr". Why?
The message in the logs is not an error, it is a logged message. This message appears only when a webhook callback takes longer than 5 minutes to process. Our webhook mechanism includes a 5-minute waiting period to prevent the occurrence of duplicate orders.
7. Why am I getting the error message: "RAZORPAY ERROR: Order creation failed with the message "Authentication failed"."?
“Authentication failed” error occurs when there is a discrepancy between the API keys. Verify the API key provided for your website and ensure that it matches with the key generated via
.8. I am getting the following error in WordPress: "Required parameter $razorpayPaymentId follows optional parameter $amount in /home/xxxcustom/public_html/wp-content/plugins/woo-razorpay/woo-razorpay.php on line 1353". Why?
Follow the steps given below to resolve the issue:
- Deactivate and delete the Razorpay WooCommerce plugin from your .
- Reinstall the .
- For easy integration journey, watch the .
9. I am getting the following error: "Plugin could not be activated because it triggered a fatal error. Parse error: syntax error, unexpected 'int' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /home4/yutihbjy/public_html/wp-content/plugins/woo-razorpay/includes/cron/one-click-checkout/one-cc-address-sync.php on line 12"
If you encounter this error message while trying to activate the Razorpay for WooCommerce plugin, follow the steps given below to resolve the issue:
- Uninstall the Razorpay for WooCommerce plugin from your WordPress Dashboard. Ensure you delete the plugin entirely, not just deactivate it.
- Remove the WooCommerce webhook associated with Razorpay from your Razorpay Dashboard. Know how to .
- After removing both the plugin and the webhook, install the latest version of the .
If the issue persists even after following these steps, contact our
with the following information:- WooCommerce version
- WordPress version
- Razorpay for WooCommerce plugin version
- A screen recording of the checkout flow (if possible)
- Staging site credentials (if applicable)
- Test Key and Secret from your Razorpay account
10. Why am I getting a "404 Page Not Found" error on the checkout when I select Razorpay as a payment option?
If you encounter this error, follow the steps given below to resolve the issue:
- Log in to WordPress Dashboard, click WooCommerce and navigate to Settings.
- In the Advanced tab, look for the Page Setup section. Ensure that you have correctly linked the Cart page and Checkout page.
- Validate the Checkout Endpoints settings:
- For the Pay endpoint, set it to order-pay.
- For the Order Received endpoint, set it to order-received.
If the issue persists even after following these steps, contact our
.Follow the troubleshooting steps given below:
- Ensure that your system meets all the requirements mentioned .
- We recommend you to keep your WordPress, WooCommerce, and Razorpay for WooCommerce plugins up to date. You can find the latest versions .
- You can perform initial debugging. Follow the steps given below to debug:
- Deactivate all plugins except for Razorpay and WooCommerce.
- If you are using a paid theme, switch to a default WordPress theme and check if the issue persists.
- Verify if the Razorpay checkout is rendering correctly. If not, try reinstalling the Razorpay for WooCommerce plugin.
- If the issue persists after following these steps, contact our . Provide the following information while creating a ticket:
- WordPress version
- WooCommerce version
- Razorpay for WooCommerce plugin version
- PHP version
- WordPress theme
- Steps to reproduce the issue (Screen recording/Screenshots)
- Error logs, if any
- Staging website credentials (login URL, login id, and password)
To reconfigure webhooks for Razorpay in WooCommerce, follow the steps given below:
- Deactivate and delete the Razorpay WooCommerce plugin from your .
- Remove the WooCommerce webhook associated with Razorpay from your Razorpay Dashboard. Know how to .
- After removing both the plugin and the webhook, install the latest version of the .
Follow the steps given below to revert to the legacy order confirmation page:
-
Open the Order Confirmation template in the Site Editor by navigating to Appearance → Editor → Templates → Order Confirmation.
-
Open the List View and delete all the special Order Confirmation blocks.
Handy Tips
Hold shift to select multiple blocks between the current selection and the block you click.
-
Open the Block Inserter, search for Order Confirmation Block and add it.
-
Click Save.
Yes, Razorpay WooCommerce supports High-Performance Order Storage(HPOS). It is recommended to enable this feature when there is minimal traffic in the store.
15. I am getting the error: "Invalid signature passed" when I trigger the webhook. What should I do?
If you encounter this error message, follow the below steps to troubleshoot this issue:
- Uninstall the Razorpay for WooCommerce plugin from your WordPress Dashboard. Ensure you delete the plugin entirely, not just deactivate it.
- Remove the WooCommerce webhook associated with Razorpay from your Razorpay Dashboard. Know how to .
- After removing both the plugin and the webhook, install the latest version of the .
If the issue persists even after following these steps, contact our
.Yes, Razorpay WooCommerce supports Checkout Blocks.
No, the WooCommerce subscription plugin is only available in the paid version of WooCommerce.
Yes, it is mandatory. We do not support subscriptions with no expiry date on the WooCommerce plugin.
The WooCommerce plugin currently supports only currencies that use 2 decimal units. For example: USD, EUR, INR. It does not support currencies with 0 decimal (for example,, JPY) or 3 decimal units (for example,, BHD).
To check the Razorpay logs on WooCommerce, follow these steps:
- Go to WordPress Admin and navigate to WooCommerce. Click Status.
- Select Logs. Locate and open razorpay-logs to view the logs.
Watch Out!
A new log file is created every day, so be sure to check the most recent file for the latest logs.
This issue may arise due to incorrect webhook configuration or domain allowlisting. To resolve this:
- Ensure that the in your Razorpay Dashboard.
- After placing an order, check the for entries such as:
Webhook conflict due to early execution for razorpay order
Webhook conflict over for razorpay order
Webhook process finished the updateOrder function
If these logs are missing, the issue might occur due to domain allowlisting. To resolve this, list
in your server settings.Was this page helpful?
ON THIS PAGE