[Skip to main content](#vessel-content)

#   PayPal X-Frame issue

##

- **[ltempest](/forum/user/1784-ltempest "View ltempest's Profile")**
- [![ltempest's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1784-ltempest "View ltempest's Profile") Topic Author
- [ Offline](/forum/user/1784-ltempest)

Less More

- Posts: 237
- Thank you received: 5
-
-

6 years 1 week ago [\#326457](#326457) by [ltempest](/forum/user/1784-ltempest "View ltempest's Profile")  *[PayPal X-Frame issue](/forum/29-payment-methods/901328-paypal-x-frame-issue#326457 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.23  Hello, I have an issue with the Hikashop Paypal Website Payments Pro Hosted Payment plugin. I have it published and active on my site, when I go through the checkout process and select it as a payment option it fails with an x-frame cross scripting issue. I cannot get the plugin to work with either run in iFrame Yes or No setting.  Please see the attached screenshots. Does anyone have the PayPal Hosted plugin running successfully? Can you advise on how you have the configuration setup.  Thanks Lee")* was created by *[ltempest](/forum/user/1784-ltempest "View ltempest's Profile")*

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.23

Hello,
I have an issue with the Hikashop Paypal Website Payments Pro Hosted Payment plugin. I have it published and active on my site, when I go through the checkout process and select it as a payment option it fails with an x-frame cross scripting issue. I cannot get the plugin to work with either run in iFrame Yes or No setting.

Please see the attached screenshots. Does anyone have the PayPal Hosted plugin running successfully? Can you advise on how you have the configuration setup.

Thanks
Lee

- [ ![Screenshot2020-11-25at10.48.13.png](/forum/attachment/51228) ](/forum/attachment/51228 "...at10.48.13.png") [ ](/forum/attachment/51228?download=1 "...at10.48.13.png")
- [ ![Screenshot2020-11-25at10.48.00.png](/forum/attachment/51229) ](/forum/attachment/51229 "...at10.48.00.png") [ ](/forum/attachment/51229?download=1 "...at10.48.00.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDEzMjgtcGF5cGFsLXgtZnJhbWUtaXNzdWU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

6 years 1 week ago [\#326465](#326465) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal X-Frame issue](/forum/29-payment-methods/901328-paypal-x-frame-issue#326465 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.23  Hello, I have an issue with the Hikashop Paypal Website Payments Pro Hosted Payment plugin. I have it published and active on my site, when I go through the checkout process and select it as a payment option it fails with an x-frame cross scripting issue. I cannot get the plugin to work with either run in iFrame Yes or No setting.  Please see the attached screenshots. Does anyone have the PayPal Hosted plugin running successfully? Can you advise on how you have the configuration setup.  Thanks Lee")*

Hi,

It seems that the iframe mode of Paypal Website Payments Pro Hosted is not allowed anymore by PayPal.
But with the "iframe" setting turned off, it will work without an iframe, so it should work fine. I don't see how you could get that same error with the iframe setting turned off. Could you please double check ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDEzMjgtcGF5cGFsLXgtZnJhbWUtaXNzdWU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ltempest](/forum/user/1784-ltempest "View ltempest's Profile")**
- [![ltempest's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1784-ltempest "View ltempest's Profile") Topic Author
- [ Offline](/forum/user/1784-ltempest)

Less More

- Posts: 237
- Thank you received: 5
-
-

6 years 1 week ago [\#326519](#326519) by [ltempest](/forum/user/1784-ltempest "View ltempest's Profile")  Replied by *[ltempest](/forum/user/1784-ltempest "View ltempest's Profile")* on topic *[PayPal X-Frame issue](/forum/29-payment-methods/901328-paypal-x-frame-issue#326519 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.23  Hello, I have an issue with the Hikashop Paypal Website Payments Pro Hosted Payment plugin. I have it published and active on my site, when I go through the checkout process and select it as a payment option it fails with an x-frame cross scripting issue. I cannot get the plugin to work with either run in iFrame Yes or No setting.  Please see the attached screenshots. Does anyone have the PayPal Hosted plugin running successfully? Can you advise on how you have the configuration setup.  Thanks Lee")*

Thanks for the reply. I have been in touch with PayPal who may have found an issue. This is the reply from their support team (I have redacted some of the information and replaced with XXXXXXXX):

> So I have taken the code and tested and this is what is getting send over to PayPal:
>
> &lt;form id=paypal
> target=hss\_iframe
> name="name=hikashop\_paypalintegralevolution\_form"
> action=https://securepayments.paypal.com/webapps/HostedSoleSolutionApp/webflow/sparta/hostedSoleSolutionProcess method=post&gt;
>
> &lt;input type=hidden name=cmd value=\_ext-enter&gt;
> &lt;input type=hidden name=redirect\_cmd value=\_hosted-payment&gt;
> &lt;input type=hidden name=upload value=1&gt;
> &lt;input type=hidden name=business value=XXXXXXXX&gt;
> &lt;input type=hidden name=receiver\_email value=XXXXXXXX&gt;
> &lt;input type=hidden name=invoice value=53433&gt;
> &lt;input type=hidden name=currency\_code value=GBP&gt;
> &lt;input type=hidden name=return value=XXXXXXXX&gt;
> &lt;input type=hidden name=notify\_url value=XXXXXXXX&gt;
> &lt;input type=hidden name=cancel\_return value=XXXXXXXX&gt;
> &lt;input type=hidden name=test\_ipn value=0&gt;
> &lt;input type=hidden name=shipping value=15&gt;
> &lt;input type=hidden name=charset value=utf-8&gt;
> &lt;input type=hidden name=bn value=HikariSoftware\_Cart\_WPS&gt;
> &lt;input type=hidden name=address\_override value=0&gt;
> &lt;input type=hidden name=billing\_first\_name value=XXXXXXXX&gt;
> &lt;input type=hidden name=billing\_last\_name value=XXXXXXXX&gt;
> &lt;input type=hidden name=billing\_address1 value=XXXXXXXX&gt;
> &lt;input type=hidden name=billing\_address2 value=XXXXXXXX&gt;
> &lt;input type=hidden name=billing\_zip value=XXXXXXXX&gt;
> &lt;input type=hidden name=billing\_city value=XXXXXXXX&gt;
> &lt;input type=hidden name=billing\_state value=XXXXXXXX&gt;
> &lt;input type=hidden name=billing\_country value=XXXXXXXX&gt;
> &lt;input type=hidden name=email value=XXXXXXXX&gt;
> &lt;input type=hidden name=night\_phone\_b value=XXXXXXXX&gt;
> &lt;input type=hidden name=subtotal value=XXXXXXXX&gt;
> &lt;input type=hidden name=tax value=3&gt;
> &lt;input type=hidden name=template value=templateD&gt;
> &lt;/form&gt;
>
> When I tested the above code this didn’t work for me. The main culprit for this was the variable “name”
>
> name=”hikashop\_paypalintegralevolution\_form”
>
> renaming it to:
>
> name="paypal\_form"
>
> Allowed the Iframe to Generate

Can you advise where in the plugin this name is generated, so I can modify and test the outcome?

Thanks ![:-)](/media/kunena/emoticons/3.png ":-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDEzMjgtcGF5cGFsLXgtZnJhbWUtaXNzdWU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

6 years 1 week ago [\#326521](#326521) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal X-Frame issue](/forum/29-payment-methods/901328-paypal-x-frame-issue#326521 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.23  Hello, I have an issue with the Hikashop Paypal Website Payments Pro Hosted Payment plugin. I have it published and active on my site, when I go through the checkout process and select it as a payment option it fails with an x-frame cross scripting issue. I cannot get the plugin to work with either run in iFrame Yes or No setting.  Please see the attached screenshots. Does anyone have the PayPal Hosted plugin running successfully? Can you advise on how you have the configuration setup.  Thanks Lee")*

Hi,

What he is saying is really strange.
The PayPal server should not see the name of the form sending the data.
Plus, the target=hss_iframe comes from the iframe mode.
So it seems that you still have the payment method configured with the iframe mode.
The file you want to look at is plugins/hikashoppayment/paypalintegralevolution/paypalintegralevolution_end.php
There, you can see a if at the beginning to decide whether to use the iframe mode or the non iframe mode.
So what you could do is to change that line from: Code:

if (($this-&gt;payment_params-&gt;iframe == 1)) {

to: Code:

if (false) {

to force the non-iframe mode and it should hopefully work fine.
In that file you'll also see the code Code:

name="hikashop_paypalintegralevolution_form"

twice. So if you want to try and follow their recommendation, you can change both of them.
However, I don't see how that would work since javascript code there bases itself on the name of the form: Code:

document.hikashop_paypalintegralevolution_form.submit();

so that you don't have to click on a button to submit the data to PayPal.
If you change the name of the form, this javascript wouldn't work anymore and you would have to manually validate the form with a button or change also the javascript line to use the new name of the form.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDEzMjgtcGF5cGFsLXgtZnJhbWUtaXNzdWU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ltempest](/forum/user/1784-ltempest "View ltempest's Profile")**
- [![ltempest's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1784-ltempest "View ltempest's Profile") Topic Author
- [ Offline](/forum/user/1784-ltempest)

Less More

- Posts: 237
- Thank you received: 5
-
-

6 years 1 week ago [\#326575](#326575) by [ltempest](/forum/user/1784-ltempest "View ltempest's Profile")  Replied by *[ltempest](/forum/user/1784-ltempest "View ltempest's Profile")* on topic *[PayPal X-Frame issue](/forum/29-payment-methods/901328-paypal-x-frame-issue#326575 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.23  Hello, I have an issue with the Hikashop Paypal Website Payments Pro Hosted Payment plugin. I have it published and active on my site, when I go through the checkout process and select it as a payment option it fails with an x-frame cross scripting issue. I cannot get the plugin to work with either run in iFrame Yes or No setting.  Please see the attached screenshots. Does anyone have the PayPal Hosted plugin running successfully? Can you advise on how you have the configuration setup.  Thanks Lee")*

Nicolas,
Firstly thank you for your help it is greatly appreciated. ![:-)](/media/kunena/emoticons/3.png ":-)")

PayPal have replied with a possible issue / solution:
Code:

Thanks for the information there, and the code snippet. So looking at the code I can see the issue straight away: &lt;?php if (($this-&gt;payment_params-&gt;iframe == 1)) { ?&gt; &lt;iframe frameborder="0" id="hss_iframe" name="hss_iframe" width="570px" height="540px"&gt;&lt;/iframe&gt; //&lt;div class="hikashop_paypalintegralevolution_end" id="hikashop_paypalintegralevolution_end"&gt; //&lt;form id="hikashop_paypalintegralevolution_form" target="hss_iframe" //name="hikashop_paypalintegralevolution_form" action="&lt;?php echo $this-&gt;payment_params-&gt;url;?&gt;" //method="post"&gt; Looks like the HSS Iframe is being loaded into: (payment_paramsàiframe ==1 ) This would automatically trigger a security issue and result in the refuse to display error. If you take the code directly out of that environment and run it within a local host the Iframe will render without any issues. Wrapping the Iframe in a div container shouldn’t be an issue, however wrapping the Iframe within another Iframe will cause the origin conflict.

So it seems if the initial iFrame can be removed from the plugins/hikashoppayment/paypalintegralevolution/paypalintegralevolution_end.php file then it should work?

I have the contact at PayPal who is helping me, Would it be beneficial for you to communicate with them directly? How can I send you their details securely rather than posting in a public forum?

Thanks again
Lee

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDEzMjgtcGF5cGFsLXgtZnJhbWUtaXNzdWU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

6 years 1 week ago [\#326581](#326581) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal X-Frame issue](/forum/29-payment-methods/901328-paypal-x-frame-issue#326581 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.23  Hello, I have an issue with the Hikashop Paypal Website Payments Pro Hosted Payment plugin. I have it published and active on my site, when I go through the checkout process and select it as a payment option it fails with an x-frame cross scripting issue. I cannot get the plugin to work with either run in iFrame Yes or No setting.  Please see the attached screenshots. Does anyone have the PayPal Hosted plugin running successfully? Can you advise on how you have the configuration setup.  Thanks Lee")*

Hi,

There is no need. What he is saying is the same thing I'm saying but in a different way.
He is recommending you to change the HTML of the first mode to make it work like the second mode, while I proposed to force the second mode.
So again, change that line from:
if (($this-&gt;payment_params-&gt;iframe == 1)) {
to:
if (false) {
to force the non-iframe mode and it should hopefully work fine.
You just need to try the solution I proposed and confirm that it fixes the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDEzMjgtcGF5cGFsLXgtZnJhbWUtaXNzdWU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ltempest](/forum/user/1784-ltempest "View ltempest's Profile")**
- [![ltempest's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1784-ltempest "View ltempest's Profile") Topic Author
- [ Offline](/forum/user/1784-ltempest)

Less More

- Posts: 237
- Thank you received: 5
-
-

6 years 4 days ago [\#326716](#326716) by [ltempest](/forum/user/1784-ltempest "View ltempest's Profile")  Replied by *[ltempest](/forum/user/1784-ltempest "View ltempest's Profile")* on topic *[PayPal X-Frame issue](/forum/29-payment-methods/901328-paypal-x-frame-issue#326716 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.23  Hello, I have an issue with the Hikashop Paypal Website Payments Pro Hosted Payment plugin. I have it published and active on my site, when I go through the checkout process and select it as a payment option it fails with an x-frame cross scripting issue. I cannot get the plugin to work with either run in iFrame Yes or No setting.  Please see the attached screenshots. Does anyone have the PayPal Hosted plugin running successfully? Can you advise on how you have the configuration setup.  Thanks Lee")*

Nicolas,
PayPal are saying it has to run in iFrame mode.

I'm getting nowhere! ![:-(](/media/kunena/emoticons/22.png ":-(") this is beyond what I understand. It seems PayPal were able to get it working when they edited the page code, please see the attcahed PDF which is a copy of an email they sent to me.

Does this make any more sense? It seems they can get it working in an iFrame which is what they are requesting needs to be done?

Thanks

Lee

*This attachment is hidden for guests.
Please log in or register to see it.*

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDEzMjgtcGF5cGFsLXgtZnJhbWUtaXNzdWU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

6 years 4 days ago -  6 years 4 days ago [\#326724](#326724) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal X-Frame issue](/forum/29-payment-methods/901328-paypal-x-frame-issue#326724 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.23  Hello, I have an issue with the Hikashop Paypal Website Payments Pro Hosted Payment plugin. I have it published and active on my site, when I go through the checkout process and select it as a payment option it fails with an x-frame cross scripting issue. I cannot get the plugin to work with either run in iFrame Yes or No setting.  Please see the attached screenshots. Does anyone have the PayPal Hosted plugin running successfully? Can you advise on how you have the configuration setup.  Thanks Lee")*

Hi,

I'm not sure it will work but why not.
Here is a version of the plugin you can install on your website.
It should display the form like that if you have the "iframe" option activated.
*This attachment is hidden for guests.
Please log in or register to see it.*

Last edit: 6 years 4 days ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDEzMjgtcGF5cGFsLXgtZnJhbWUtaXNzdWU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.067 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
