Hi, I am only getting back to this now. I have my form set up and am sorting out the SurfaceController handling. I have made some modifications to your code to fit in with our set up. Just a couple of questions, if that's ok?
Are you using this Opayo integration?
https://www.opayolabs.co.uk/OpayoDemo/insurance?showpost=off?
Our original code was using the Form set up -
https://www.opayolabs.co.uk/OpayoDemo/nonprofit?showpost=off - which involved a Crypt field. I'm not 100% sure we don't need to still use this but I'm hoping not.
PaymentDetails - is that a View Model? I have changed it to the form view model used in the View Component?
What is details.GetData() doing? at the end of the string data = .... line? I'm thinking it must be getting customer name, email etc as I don't see that information anywhere else?