Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it safe use an iframe for a payment?

I have this question: is safe use an iframe to load the page where the customer will do the payment. For example paypal or DineroMail or the page that does the credit card payment. Because My boss wants that the customer feels that never leaves the site so in my site I added an iframe (and inside this I load the url of the payment) but don't know if is correct and safe or no.

Thanks.

like image 532
Natalie Avatar asked Jun 16 '14 22:06

Natalie


People also ask

Is iframe safe to use?

The iFrame contains a malicious form that can lead the user to submit sensitive information. This threat can be solved by using sandbox with removing allow-forms . The iFrame may unintentionally download malware to the user's computer.

What is a payment iframe?

To put it simply, an iframe allows an e-commerce website to embed a payment page from a third party payment service provider (PSP), so that the payment information is collected within the PSP's environment.

What is an iframe and why is it bad?

An iFrame represents a nested browsing context inside an existing HTML document. It's the number one way to host third-party content safely. The content inside an iFrame can't access the content of its host and vice-versa. This creates a wall between the host website and the third party.

Is iframes PCI compliant?

In the e-commerce space, iFrames have become a popular option for merchants to maintain PCI DSS compliance and keep the checkout process accessible from inside their webpage.


1 Answers

From a technical security point of view (Same Origin Policy), it is exactly as safe to open an iframe as it is to open a new tab.

From a UI point of view, opening an iframe in certain locations can deceive the user and you might be accused of trying to clickjack the user into making an inadvertent payment if you are not careful.

I cannot say anything about PayPal's own policy, but you should make sure they are okay with it.

like image 196
merlin2011 Avatar answered Oct 13 '22 12:10

merlin2011