Hi all
I am trying to insert an order into my own database, post some data to a third party payment system and redirect the user to payment page all in the same method.
I can write to the database ok, i can post the data to the payment URL but i cant redirect the user.
I have tried Server.TransferRequest but im getting a PlatformNotSupported exception. I have also tried using a basic html form (which works) but doesnt allow me to execute of code in the .cs file (to insert into the database).
I have this on the button click event:
Code Csharp:protected void Btn_Purchase(object sender, EventArgs e) { Order o = (Order)Session["order"]; Customer c = (Customer)Session["customer"]; onlinepayments.OrderDAC.InsertOrder(o, c); NameValueCollection nv = new NameValueCollection(3); nv.Add("epdqdata", encryptedData); nv.Add("returnurl", "http://www.mysite.com"); nv.Add("merchantdisplayname", "MySite"); Server.TransferRequest("https://secure2.epdq.co.uk/cgi-bin/CcxBarclaysEpdqEncTool.e", true, "POST", nv);
any suggestions are much appreciated...
thanks
![]()




Bookmarks