Closed formobi closed 2 months ago
How are you using this ?
Once you register for a webhook with Cashfree, that is the end-point which is given in the example.
1> Do you mean registering via api as "return_url"? I have seen some places notify_url too OR registering on cashfree dashboard? 2> If I provide GET instead of post then the webhook gets called. But the headers do not have signatures.
Can you please point me to working example of cordova+nodejs.
On Sat, May 11, 2024 at 8:42 PM suhas-cashfree @.***> wrote:
Once you register for a webhook with Cashfree, that is the end-point which is given in the example.
— Reply to this email directly, view it on GitHub https://github.com/cashfree/cashfree-pg-sdk-nodejs/issues/64#issuecomment-2105928501, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADGSX4TTPH7RIINBWXDNFRDZBYYMPAVCNFSM6AAAAABHR3ZL4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBVHEZDQNJQGE . You are receiving this because you authored the thread.Message ID: @.***>
1> Do you mean registering via api as "return_url"? I have seen some places notify_url too OR registering on cashfree dashboard?
You can use "notify_url" or register from cashfree dashboard.
2> If I provide GET instead of post then the webhook gets called. But the headers do not have signatures.
May be you are setting "return_url". Return Url is used to redirect the user post payment. Return Url will do a get call to your specified end point, You have to use "notify_url" or register from dashboard
Can you please Poon me to the documents which clarify it.
On Sun, 12 May 2024 at 3:08 PM, suhas-cashfree @.***> wrote:
1> Do you mean registering via api as "return_url"? I have seen some places notify_url too OR registering on cashfree dashboard?
You can use "notify_url" or register from cashfree dashboard.
2> If I provide GET instead of post then the webhook gets called. But the headers do not have signatures.
May be you are setting "return_url". Return Url is used to redirect the user post payment. You have to use "notify_url" or register from dashboard
— Reply to this email directly, view it on GitHub https://github.com/cashfree/cashfree-pg-sdk-nodejs/issues/64#issuecomment-2106185576, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADGSX4UYEBNCAAOITQ2AAO3ZB42AJAVCNFSM6AAAAABHR3ZL4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGE4DKNJXGY . You are receiving this because you authored the thread.Message ID: @.***>
Closing this for now. Please create a new ticket if the issue persists
Tried using following function, it does not work. changed it to get, it gets executed but gives error. app.post('/webhook', function (req, res) { try { Cashfree.PGVerifyWebhookSignature(req.headers["x-webhook-signature"], req.rawBody, req.headers["x-webhook-timestamp"])) } catch (err) { console.log(err.message) } })