library · inferred from evidence
razorpay-php
The official PHP library for integrating with Razorpay's payment gateway.
- Razorpay webhook validation fails with invalid signature passed
If `verifyWebhookSignature` fails with an invalid signature, check which secret you are using first. Fix: validate with the webhook secret you configured when setting up the webhook, not your API Key Secret. They are different values. Also
- Razorpay PHP: verifyPaymentSignature returns NULL even though payment succeeded
This is expected behavior, not a bug. `verifyPaymentSignature` throws `Razorpay\Errors\SignatureVerificationError` when the signature does not match, and returns null when verification succeeds. So wrap the call in a try/catch: catch `Signa