Disabling security for iFrame is restricting a card payment processor
I am testing a payment process that goes thru One Inc, a third party payment processor. We don't test the processor, we just use to get thru the process. This uses an iFrame in a modal.
Until recently this was working. I'm still researching what changed, but I want to see if anyone else has a solution to this.
With TestComplete you have to open the browser with the following flags in order to access the iFrame objects
--disable-site-isolation-trials
--disable-web-security
--user-data-dir=<profile dir>
The problem I'm having now, is the card validation is not passing and it won't process the card. What I'm getting a Cloudflare Turnstile error that doesn't seem to like the security settings.
The solutions I've found have basically said I need to enable the security, but obviously that's not an option. Or is it? That's the question I have. Is there anyway for me to access the iFrame without disabling the security?
Any suggestions would be greatly appreciated.