I am trying to get Braintree Webhook responce on my app and update the users accordingly, But when i am creating any subscription (Activation) or canceling any subscription its not triggerring my webhook url. Note :- tryied check url from Braintree interface its working fine and calling my apps webhook url.
I am using this code to check the kind of notification
gateway.webhookNotification.parse(
req.body.bt_signature,
req.body.bt_payload,
function (err, webhookNotification) {
console.log("[Webhook Received " + webhookNotification.timestamp + "] | Kind: " + webhookNotification.kind);
}
So as per my information, this code will be telling me about the kind or notification and accordingly i can take action. checkd fields on webhook for Braintree is Charged Successfully Charged Unsuccessfully Expired Went Active Went Past Due.
Waiting for guidance
Thanks in advance
via Rohit G
No comments:
Post a Comment