You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Webhook returns error 500 when same razorpay account is used on multiple domains.
What happens:
Razorpay retries webhook on Website B with order data from Website A.
Since the order number from Website A does not exist on Site B, $order = wc_get_order($orderId) returns FALSE which throws the following error with HTTP response code 500. PHP Fatal error: Uncaught Error: Call to a member function needs_payment() on bool in /wp-content/plugins/woo-razorpay/includes/razorpay-webhook.php
Repeated failures result in the webhook being disabled automatically in the razorpay dashboard.
Webhook returns error 500 when same razorpay account is used on multiple domains.
What happens:
Razorpay retries webhook on Website B with order data from Website A.
Since the order number from Website A does not exist on Site B, $order = wc_get_order($orderId) returns FALSE which throws the following error with HTTP response code 500.
PHP Fatal error: Uncaught Error: Call to a member function needs_payment() on bool in /wp-content/plugins/woo-razorpay/includes/razorpay-webhook.php
Repeated failures result in the webhook being disabled automatically in the razorpay dashboard.
razorpay-woocommerce/includes/razorpay-webhook.php
Line 206 in 400c228
razorpay-woocommerce/includes/razorpay-webhook.php
Line 289 in 400c228
razorpay-woocommerce/includes/razorpay-webhook.php
Line 439 in 400c228
This is how I am presently getting this to work. Please suggest a better fix if possible.
The text was updated successfully, but these errors were encountered: