I’m creating an eCommerce website and I was researching on how I can accept credit cards on my website. I came across a lot of payment gateways but they do the processing on their website and I don’t want my visitors to leave my URL. How can I achieve this? Thanks.
Share
Would embedding the third-party payment page in a DIV or IFRAME element inside your application page suit you? Possibly using a modal dialog to contain it?
It wouldn’t give you complete control over the layout, but your headers, footers, navigation bars, etc. would remain intact.
Note that, due to JavaScript sandboxing, JS code on your application page cannot interact with the 3rd-party page, and vice-versa.