Support » Plugin: Razorpay for WooCommerce » Webhook Signature Verification Fails

  • Resolved backpackingseries

    (@backpackingseries)


    Hi,

    There’s a record in the PHP error log – any suggestions to resolve this? I guess this is coming from the test-mode webhook.

    {"message":"Invalid signature passed","data":{"entity":"event","account_id":"account id_string","event":"payment.authorized","contains":["payment"],"payload":{"payment":{"entity":{"id":"pay_id_string","entity":"payment","amount":xxxxxx,"currency":"INR","status":"authorized","order_id":"order_id_string","invoice_id":null,"international":false,"method":"card","amount_refunded":0,"refund_status":null,"captured":false,"description":"Order 4854","card_id":"card_id_string","card":{"id":"card_id_string","entity":"card","name":"name_string","last4":"xxxx","network":"Visa","type":"debit","issuer":null,"international":false,"emi":false,"sub_type":"consumer"},"bank":null,"wallet":null,"vpa":null,"email":"id_string","contact":"number string","notes":{"woocommerce_order_id":"xxxx"},"fee":null,"tax":null,"error_code":null,"error_description":null,"error_source":null,"error_step":null,"error_reason":null,"acquirer_data":{"auth_code":"xxxxx"},"created_at":xxxxxxxxxx}}},"created_at":xxxxxxxxxx},"event":"razorpay.wc.signature.verify_failed"}

    The signature matches on WooCommerce and Razorpay. Are there any characters to avoid in the signature secret?

    Kind regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ramprak

    (@ramprak)

    @backpackingseries , Can you please set same webhook secret for both the places, webhook settings in Razorpay dashboard and in your woo-commerce site settings.

    Thread Starter backpackingseries

    (@backpackingseries)

    @ramprak Thanks much for your reply, Yes, the secret matches on both sides.

    Actually, it works when I change the string to not use special characters (with alphabets and numbers only).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Webhook Signature Verification Fails’ is closed to new replies.