- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unable to add Webhook URL which is parameterised or query string
I am unable to add webhook which is parameterised or is a query string for example
https:\\fromauthorizenet.ashx?type=hook does not work.
Reason for above requirement is
I have mentioned return URL, cancel URL in GetAnAcceptPaymentHostedPage as mentioned below respectively
Return URL: https:\\https:\\fromauthorizenet.ashx?type=return
Cancel URL: https:\\https:\\fromauthorizenet.ashx?type=cancel
In all the 3 cases I want my handler to route or do a business logic depending on the given type parameter. This is working fine in the setting for return and cancel URL however webhook is not helping me much in this case.
Any thoughts or ideas would be of great help.
โ12-06-2018 11:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am not versed in this at all. Is it possible to have the logic executed based on the presence of a header rather than parameters? If so, you could check for the presence of the X-Anet header, as only Webhooks will have that header.
In php, the type of exercise you are describing is straightforward because you just write scripts that essentially boss around the server and tell it exactly what to do. So my endpoint has no parameters in the url, it just has a bunch of these โboss aroundโ scripts that execute all the actions and logic I need it to.
โ12-07-2018 09:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, I would like to make the changes as you suggested. However, it would have been great if webhook allowed parameterized url. Since we are only defining what we want in the sandbox.
Thanks for the clarification.
โ12-07-2018 11:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So in my view better to leave it all up to non parametrized scripts and frisk the info being sent to you before you allow it to do anything with your application.
โ12-07-2018 11:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi mvkotekar1983,
It looks as though you are already getting some excellent collaboration on this question, but I can confirm that parameterized URLs are not permitted for use.
Thank you,
Elaine
โ12-10-2018 10:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI,
I figured we can add parameter as a html fragment (#parameter). The Webhooks edit screen has no complaints. The web server should see url's with different hashes as same URL. Problem solved.
Will this work?
Thanks & Regards
Pilla Gurumurty Patrudu
โ04-08-2019 01:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I figured, we could add html fragments (#parameter), after the URL. The edit option of webhooks did not complain. The wb server sees two hashes as the same URL. Problem solved.
Will this work?
Thanks & Regards
Pilla Gurumurty Patrudu
โ04-08-2019 01:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I figured, we could add html fragments (#parameter), after the URL. The edit option of webhooks did not complain. The wb server sees two hashes as the same URL. Problem solved.
Will this work?
Thanks & Regards
Pilla Gurumurty Patrudu
โ04-08-2019 01:50 AM