Hosted iFrame modal window with PayPal Checkout enabled does not display in the embedded iFrame
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I finished development of a Hosted Payment Page using Layout C (Embedded iFrame). The production accounts we have are set up with PayPal Checkout as well as Hosted Payment Pages. In the Hosted Payment Page setup, there is no ability to modify to turn off PayPal Checkout in the Hosted Payment form. This seems incorrect.
I did some research and saw that you can set a sandbox='allow-top-navigation' in your iframe attribute, but this is useless to me, our requirements are *NOT* to send the user to another page, it all must be done on the same site. It does not display the PayPal Checkout within the same embedded iFrame when the button is clicked. I could not find any documentation for this problem on PayPal - anybody else encounter this issue?
Either they need to give the ability to turn PayPal Checkout off in hosted payments or provide a solution to create another iframe or modal window or somehow embed in the existing iframe. I know that is difficult due to CORS to redirect the URL in the same iFrame. Or not allow PayPal Checkout to display on a Layout C embedded iframe.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Issue for SignUp on native apps - PayPal x 4 (paylater) in Sandbox Environment
- At the payment checkout I can't display in a frame because it set 'X-Frame-Options' to 'sameorigin in Sandbox Environment
- Javascript SDK in REST APIs
- Change the button from Sandbox to Production in REST APIs
- The Advanced Credit Card Option from PayPal Advanced Checkout SDK is displaying different UIs. in PayPal Upgrade Community