cancel
Showing results for 
Search instead for 
Did you mean: 

Accept hosted Transaction Response in asp.net webform

Here is the working source code: https://github.com/mvkotekar/Authorize.Net-Hosted.git

 

Am working on asp.net web application with web forms. I have successfully integrated asp.net hosted payment form and also once I click on pay, I receive the authorize.ne receipt form and continue button. 

 

My question is, how to retrive the transaction response in accept hosted environment. I have given the git url to my code which is in working condition. I followed through different articles but I was unable to get correct direction to achieve this. 

 

Am not using IFrame or Lightbox. Am using Accept hosted payment style for development. 

1. I tried with Response Relay which did not work

2. I have tried with webhook, I am able to see transactioncreated but I need it as part of my return URL.

 

Any help would be greatly appreciated.

Here is the working source code: https://github.com/mvkotekar/Authorize.Net-Hosted.git

mvkotekar1983
Contributor
1 ACCEPTED SOLUTION

Accepted Solutions

I was able to resolce this issue by subscriting to the webhook API settings in sandbox. ALso we should not be using localhost URL. Instead we need to use ngrok and use https url. 

 

I was able to create a handler and provide that handler in webhook notification and am able to get the response now. 

 

Problem now is, how to validate uniqueness of the transaction. FOr exmaple if we create 10 transactions, I get webhook response in indeterministic time. In such cases how to map which response form web hook should be associated with whom.

View solution in original post

2 REPLIES 2

Any help or support would be of great help to proceed further with my development work on Authorize.net. Let me know if my question is unclear or any data is required from my end. 

 

 

Am looking for resource or examples where I could use the transaction response in my asp.net project rather than using a different webhook project as mentioned in the project. 

mvkotekar1983
Contributor

I was able to resolce this issue by subscriting to the webhook API settings in sandbox. ALso we should not be using localhost URL. Instead we need to use ngrok and use https url. 

 

I was able to create a handler and provide that handler in webhook notification and am able to get the response now. 

 

Problem now is, how to validate uniqueness of the transaction. FOr exmaple if we create 10 transactions, I get webhook response in indeterministic time. In such cases how to map which response form web hook should be associated with whom.