Need help on a custom payment method : not redirecting when using OnePageCheckout

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
Hello,
I wrote a custom payment plugin to work with a french bank.
The bank API gives me a complete html string including a client redirection, that I send to the browser with this code :

string html = GetHtmlFormWithClientRedirect(commandLineParams.ToString());
HttpContext.Current.Response.Write(html);
HttpContext.Current.Response.End();


This solution does not work when we try to  use OnePageCheckout, probably because of ajax. Does anybody already know a solution to solve this?

Thanks for your help,
Nicolas
11 years ago
Hi Nicolas,

Have you set PaymentMethodType property of the plugin to PaymentMethodType.Redirection?
11 years ago
Shame on me...
It was the solution, thank you Andrei!!!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.