I am using the webbrowser control in C# for our desktop application to run a credit card through a gateway.
Simply, I'm loading the page on the load of the form:
public Form1()
{
InitializeComponent();
webBrowser1.Url = new Uri("https://paymentgateway.com/hosted.aspx?" +
"Username=dddd" +
"&Password=dddd" +
"&MerchantKey=5159" +
"&BillingAddress1=123 some street" +
"&BillingCity=Somewhere" +
"&BillingState=SC" +
"&BillingZip=39399" +
"&CustomerName=me" +
"&Amount=392.00" +
"&InvNum=123567" +
"&AccountNumber=0133333" +
"&CustomerId=0199999");
}
(all references changed for security reasons)
The page looks something like this:
My question is, how do I grab the response once the Process button has been clicked and then close out the form? I need to know if it was approved and the rest of the information from that point.
I don't have control over the button so I'm not sure how to capture the response.
Thanks again!