Inconsistent behavior of Selenium, on PayPal's sandbox site - php

I'm creating automated test for the integration of my website with PayPal's Express Checkout.
I use PHPunit (V3.7.28), Selenium server V2.39 and tried both Chrome and Firefox WebDrivers.
In my test, I click on 'Checkout with PayPal' button and redirected to my PayPal's sandbox page, login and complete the purchase. Here's a link to an express checkout page:
https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-********
The behavior is inconsistent.
It might work sometimes, but usually it's stuck in my site and not loading PayPal's site. It looks like the page is started loading and the url is correct, but it doesn't finish loading up.
When I try to reproduce it manually:
When I do it on my local machine without WebDriver, it works fine!
When I use Selenium and open the browser using the WebDriver, I'm getting stuck.
Any idea why the browser get stuck while loading the page?
If any further information is needed, please let me know.

Related

Facebook custom page tab not allowed anymore?

So our app has stopped working recently. Our "installation" process tries to create a custom page tab, which has been working since at least june of last year. Now when one of our customers attempts to start using our app, they get the "Add Page Tab" dialog, select the page wherein they want to install the app, click the "Add Page Tab" button, and instead of working, this error comes up:
"This page does not have permission to install the custom tab."
We are using the latest version of the php API. This successfully works installing the test version of our app on my own Facebook account... I am at a loss. Any suggestions?
Ok, so the deal is, Facebook took away something that was moderately useful - being able to install a Canvas (iframed-in webpage) app on a "Page" accessed via a "Page Tab", and doesn't seem to have any replacement for it. So far, anyway, our customers who have already installed our app will get to keep it, but nobody new can add it.

Paypal express checkout does not display properly in firefox

I've created an e-commerce website in PHP and am using the paypal express checkout API. It's currently in sandbox mode and has been working fine up until today. I've visited the website today and checked it on the latest version of firefox but the actual express checkout website does not display properly.
A link to the shop is http://www.voodoo-london.com/index-m.php. I've also included a screenshot of the express checkout looking all screwy. !
http://www.voodoo-london.com/ss.png
Really have no idea how to resolve this...
Thanks
Looks like the stylesheet simply failed to load. I see that on PayPal's servers sometimes, even the live ones, but it's pretty rare. Is this continuing to happen to you consistently? You might try clearing the cache/cookies in your Firefox browser to see if that resolves it.
Mozilla fixed the bug in this latest version.
Case closed

Login with facebook using php sdk not working

I'm using facebook's php sdk for a login system on localhost. It was working fine without any problems. But when i try to login now, after clicking the login button it just brings me back to the same page without actually logging me in and changes the url to something like this:
http://localhost/test.php?code=AQA6J5GuQQFCpc9mkOOmuR2...etc
I have double-checked all the code and all the source php sdk files needed. They are all there and haven't been changed from the last time i was able to successfully login. But for some reason it isn't working. Can someone please help me out.
As far as I can see Facebook requires the registration of your web site for the ap, to prevent hackers.
Therefore I don't think it can ever work if your running it on localhost, it would have to run on a domain name.

Prestashop - Paypal Web hosted Solution IFrame Integration

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.

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