Redirect Whit post data in paymant

Monday, November 25, 2024 5:27:12 PM
  • Posted: Wednesday, January 22, 2020 9:10 PM
  • 41
Hi I need redirect to payment Bank site Whit post data how I can do it in payment plugin I try add form Whit auto submit but not work in chrome mobile browser  plz add sample redirect Whit post data code
Thx
0
  • Posted: Thursday, January 23, 2020 6:46 AM
  • 953
Hi,

PayPal plugin, implemented out of the box in GrandNode is a redirect payment method, you can check its source code and see how it's developed. You can find it here.
Best regards,
Patryk

GrandNode Team
0
  • Posted: Thursday, January 23, 2020 9:33 PM
  • 41
thank you Patryk
i try do it but cant find redirect to pypal web site whit post
my bank web site just lode when i send data whit post metod
in paypal PostProcessPayment
you send data whit get method
you call CreateQueryParameters and create Dictionary thien whit QueryHelpers merge to 1 url then redirect to url
but i should post parametr to url and redirect
sorry for bad english plz help me thx
0
  • Posted: Thursday, January 23, 2020 9:38 PM
  • 41
this code is working but not work in andrid chrome

Response.Clear();

StringBuilder sb = new StringBuilder();
sb.Append("<html>");
sb.AppendFormat(@"<body onload='document.forms[""form""].submit()'>");
sb.AppendFormat("<form name='form' action='{0}' method='post'>",postbackUrl);
sb.AppendFormat("<input type='hidden' name='id' value='{0}'>", id);
// Other params go here
sb.Append("</form>");
sb.Append("</body>");
sb.Append("</html>");

Response.Write(sb.ToString());

Response.End();
0
back to top
Filters