zlacker

[parent] [thread] 3 comments
1. Wesoly+(OP)[view] [source] 2023-06-13 09:47:25
The payment gateways still use iframes, they just don’t tell you that.

This is also why styling such forms is always some species of wonky.

replies(1): >>abhibe+BI
2. abhibe+BI[view] [source] 2023-06-13 14:20:28
>>Wesoly+(OP)
The gateways I use don't, or at least give me the option not to.

Those iFrames cause all kinds of headaches when the user hits the back button or double clicks a submit button or does any number of other things that happen thousands of times a day on a moderately high traffic site, and when it messes up you either miss out on a sale (ouch) or charge the customer twice (double ouch).

replies(1): >>Wesoly+Ub1
◧◩
3. Wesoly+Ub1[view] [source] [discussion] 2023-06-13 16:14:26
>>abhibe+BI
> The gateways I use don't, or at least give me the option not to.

They usually don't tell you they do. For example, both Stripe and Square use iFrames; otherwise it's not possible to hide credit card entry from your main application.

There are gateways that redirect you away and return you back after payment, but that's a whole another story.

replies(1): >>_madma+I23
◧◩◪
4. _madma+I23[view] [source] [discussion] 2023-06-14 00:15:00
>>Wesoly+Ub1
You're right, but it's worth noting that the iframes used today are better at hiding the fact that they're iframes, it's usually hidden behind an API call from a library that you import, and that doesn't affect your browsing history, or at least not as bad as those huge forms used in the past that would essentially replace the page you're on for the sake of paying.
[go to top]