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.
Il y a 11 ans
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
Il y a 11 ans
Hi Nicolas,

Have you set PaymentMethodType property of the plugin to PaymentMethodType.Redirection?
Il y a 11 ans
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.