Prestashop - Paypal Web hosted Solution IFrame Integration - php

I'm working on Paypal web hosted solution (sand box). In that i would like to integrate with IFrame. but when i integrate sometime the iframe is loaded but when i work with new browser or new proxy server it does not load the iframe. rather if i logged already in paypal account. the iframe is loading
the problem is that iframe should work when i load the page.
Thanks

To clarify: Hosted Solution is a new product that allows irame in templateD mode.
https://cms.paypal.com/cms_content/GB/en_GB/files/developer/HostedSolution.pdf - chapter 4
To address the question - I'd try live. To use Sandbox you must be logged into developer.paypal.com. When using proxies you may lose the login along the way and the iframe will try to display "you must log in" page which cannot be iframed.
I hope this helps.
Michael

Paypal does not allow integration using an iFrame.

Related

Simple php login for static Godaddy website

I am building a website using html, css and javascript. It's a Godaddy domain and also hosted there. The company I'm working for does not want the site to be accessible by anyone until they are ready to launch. I need to create a very simple php login (just 1 user) where my colleagues can enter the credentials to view the progress of the site in production. I have no experience with php and minimal mysql experience. How would I go about creating such an authentication?
I think instead of adding login feature you can restrict it using .htaccess.
Here is the link which can help to password protect the site using .htaccess
http://www.htaccesstools.com/articles/password-protection/

Facebook App rejecting call from domain set as Canvas URL

I have a situation where I need to be able to make calls to my Facebook App from 2 domains. Previously everything has come from www.domain1.co.uk but now I need to change my Website platform url to www.domain2.co.uk.
In accordance with this qu and answer (Facebook login with multiple domains.)
I have added a dummy canvas page (no page tab tho) which has been assigned to www.domain1.co.uk and changed my website platform url to be www.domain2.co.uk. I have then added www.domain2.co.uk to my App Domains.
So my App Domains are now www.domain1.co.uk and www.domain2.co.uk.
Currently the Facebook Login function still works for my website # www.domain1.co.uk but not # www.domain2.co.uk. I made the changes a good 5 hours ago.
I use Login with Facebook and Register with Facebook via this app. Client OAuth Login and Web OAuth Login are enabled for this app. There are no Valid OAuth redirect URIs stored.
Could anyone point me in the direction of what I need to fix here please?
Many thanks.
Kind Regards
Liz
Okay intensive investigation has revealed that it helps to make the changes to the correct app.
The changes kicked in immediately at that point.
Apologies for any wasted time.

IOS HTML5 app Facebook Login failure when 'Add to Home' screen used

I have been working on a website that has a mobile version. Integrated into the site is a bit of code that allows users with FB to register without having to fill out a form. If the user meets any of the following conditions all is well
Uses ANY desktop browser
Users ANY mobile browser
The FB just works. However as soon as I do an 'Add to Homescreen' with IOS to make the app look and perform like a native app, when anyone uses the FB signup I get the
'Given URL is not permitted by the application configuration: One or more of the given URL's is not allowed by the Apps settings. It must match the Website URL or the Canvas URL, or the domain must be a subdomain of one of the App domains'
I am assuming that once you use the add to home screen, and the app gets its own instanced browser, the URL changes, likely some form of localhost derivation maybe?
I can't find any definitive answers to fixing this, and was wondering if anyone else had experienced this HTML5 IOS app problem?
Looks like the dev of the extension I was using will be working on a different authentication flow, so not giving this any more dev time

Facebook canvas apps HTTPS and HTTP

I have created two Facebook canvas apps. I am having problems with people accessing the apps. In the app settings you must enter:
Canvas URL
Secure Canvas URL
Secure Canvas URL wont accept HTTP links but only HTTPS. When some of my users go to my app link like http://apps.facebook.com/my_app Facebook automatically redirects them to https://...
Canvas app content is loaded from my server which is only accessible via HTTP. The users which are redirected to https://apps.facebook.com/my_app then can not load my app since Facebook canvas wants to load content from my server via HTTPS. How do I solve this, without enabling SSL on mu server?
And not all users are redirected to https://apps.fa...? How is this handled?
I have come up with an interesting hack for this problem.
You can create a HTML file that is accessible over HTTPS that just redirects to your webpage. For example, you can use dropbox. Since Facebook loads your secure canvas URL page in an iframe, your code needs to redirect the top page. Something like this.
<html>
<head>
<script>
function onLoad() {
window.top.location.href="<your website>";
}
</script>
</head>
<body onload="onLoad()">
<p>Please wait while you are being redirected to <your website name>…</p>
</body>
</html>
And provide this link as the secure canvas URL. I blogged about this in more detail - http://blog.almabase.com/post/84579042935/interesting-hack-for-facebook-secure-canvas-url
Basically, you must provide https support. At the moment, you can still leave the Secure Canvas URL field empty to avoid doing so, but it will be required starting October 1st.
Facebook users that have explicitly said they want to use HTTPS in their account settings get redirected to HTTPS. Your application has to support HTTPS by October 1st, as announced by Facebook here: https://developers.facebook.com/blog/post/497
Without enabling SSL on your server, you could try social-server.com
However, this is only a quick workaround. Your users might get nasty security messages from their browsers while using https.
The best solution is to buy a SSL certificate if you still want to develop Facebook apps.

facebook authentication error

I am Developing a simple Facebook Application in php which displays only name of the user of the application.
Facebook authentication dialog that appears whenever a facebook user joins an app is not appearing with the programming code I dowloaded from link https://github.com/facebook/php-sdk officially provided at facebook app developer page.
I have dowloaded some other app codes which has wrong authentication code.
I am facing 2-3 errors, in some cases the canvas page of the application is refreshing itself again and again and in the other case authentication window appears, but when one clicks on "Allow App" the page is redirected to application page that is loaded on the server and on clicking "Don't Allow" the page is redirected to canvas page instead of coming back to home page of user.
is the php-sdk library that i have downloaded is outdated or there is any other problem.
please anybody who has tested code provide the with solution coz i have tried a lot of readymade applications already (all has sane problems). i just require a working authentication code with correct php library
THe source code from the official PHP sdk site is working.... yet, it is expected that in the provided sample code, the authentication flow is not kicked off automatically. You can verify that by going through the code.
there are a few community generated tutorial listed in http://forum.developers.facebook.net/viewtopic.php?id=79787. You may find them useful.

Categories