Reply
Contributor
Posts: 11
Registered: ‎06-29-2018
Accepted Solution

Verify WebHook Notifications example

The documentation here https://developer.authorize.net/api/reference/features/webhooks.html#Verifying_the_Notification talks about the verification process for WebHook response. Is there and example available on how to implement this in Java?


Accepted Solutions
Solution
Accepted by topic author ashish1871
‎08-01-2018 06:47 AM
Posts: 333
Kudos: 59
Solutions: 36
Registered: ‎03-13-2017

Re: Verify WebHook Notifications example

Hi @ashish1871

 

You can have a look at this repo https://github.com/dns12345/AuthNet.WebHooks  

 

We are also in progress of building a sample app for Webhooks which will be published soon . 

 

Thanks





Send feedback at developer_feedback@authorize.net

View solution in original post


All Replies
Solution
Accepted by topic author ashish1871
‎08-01-2018 06:47 AM
Posts: 333
Kudos: 59
Solutions: 36
Registered: ‎03-13-2017

Re: Verify WebHook Notifications example

Hi @ashish1871

 

You can have a look at this repo https://github.com/dns12345/AuthNet.WebHooks  

 

We are also in progress of building a sample app for Webhooks which will be published soon . 

 

Thanks





Send feedback at developer_feedback@authorize.net
Contributor
Posts: 51
Registered: ‎10-28-2015

Re: Verify WebHook Notifications example

This link no longer works.

Posts: 333
Kudos: 59
Solutions: 36
Registered: ‎03-13-2017

Re: Verify WebHook Notifications example

Try this link 

 

https://github.com/dns12345/AuthNet.WebHooks/tree/master/AuthNet.WebHooks

 

Also checkout our new Webhook Sample App at https://github.com/AuthorizeNet/webhooks-sample-app

 

Thanks





Send feedback at developer_feedback@authorize.net
Highlighted
Member
Posts: 1
Registered: ‎05-30-2019

Re: Verify WebHook Notifications example

I had the exact same problem:

How to verify X-Anet-Signature?

 

So I have to use raw json encoded string as received on my endpoint. Without any modification, concatenation of name-value pairs with specials characters etc.

It is very simple! Why not mentioned in the official documentation?

It only says:

"The client application can generate the same HMAC-SHA512 hash using the webhook notification's body and the merchant's Signature Key."

And poor developer does not understand what "body" means... :-)