Until recently I used a non-embedded Paypal Adaptive payments (Even in Mobile). I am trying to move to the embedded version (using the iFrame/Ligthbox method). It works perfectly on desktop, yet it doesn't work on mobile.
In mobile platforms, the Lightbox modal does open, but if I'm not logged in to PayPal, and click the log in link, the lightbox content is just refreshed and asks me to log in again. I tried to mimic the problem by setting my desktop user agent to a mobile one, and the issue is recreated.
Note: in the ligthbox flow, if a user is not logged in, the entire payment process happens in a popup window and not in the lightbox iframe.
Is there a solution to this? I looked everywhere but there's no documentation for this problem.
UPDATE: After investigating a bit, I found this piece of code in the PayPal javascripts in the iFrame:
if (ua.match(/iPhone|iPod|Android|Mobile|Blackberry.*WebKit/i)) {
window.location.href=this.href;
} else { // open popup code }
Which simply refreshes the login page! Is there a reason for this?