Paypal Rest API and Lightbox - paypal

I'm trying to get the Paypal in-context lightbox workflow to work with their REST API. I've been following instructions provided here:
https://go.developer.ebay.com/developers/paypal/documentation-tools/checkoutnow/how-to/ht-Hermes-xo
However, the lightbox does not seem to be working. The behavior I see is that the curtain comes up, the modal briefly appears and then disappears.

The REST PayPal payment process is not currently supported to work within a lightbox or iframe.
A bunch of new features are planned to roll out this year for the REST API calls. I'm not sure if access to use the lightbox will be available though - sorry.

Related

Facebook Canvas app payment error appear while i was goes to make purchase?

See above screenshot there was issues with facebook payment.
I'm currently having the same issue with sandbox payment on multiple environment, live payments are working.
I've tested the server webhook via the web payment dashboard and it works.
The current calls are on API 2.4 and also tested with 2.7 still get the same error.
The error started appearing on different account not all at the same time.
I'm continuing my search but hope these information can help to find and solve the issue.

Is it possible for the Braintree Drop-In UI PayPal button pop-up to work on a webpage that is displayed inside an Adobe AIR desktop app?

We have a web page that uses the Braintree Drop-In UI. If I visit the page in a normal browser like Chrome, then the pop-up for the PayPal button works properly.
But we want to use this page inside our Adobe AIR desktop app. When you view the page in AIR everything is fine except the PayPal button pop-up doesn't appear on click, so PayPal is essentially disabled.
Why doesn't the pop-up work? I was trying to find the code for the pop-up but I think it is buried somewhere in here:
https://js.braintreegateway.com/v2/braintree.js
Full disclosure: I work for Braintree.
braintree.js is currently not supported in compile-to-native runtimes. I'd suggest investigating the Adobe AIR documentation to determine how it handles pop-ups.

PayPal ExpressCheckout integration problems

I'm trying to integrate Paypal's ExpressCheckout API into my website.
I'm incurring into very frustrating problems with the system and with the support assistance, too.
Every time we have a problem the support assistance invites us to change the implementation technology, from SOAP, to SDK, to NVP, etc..
After 3 days of working (from coding with SOAP (PHP) up to the attempt to start the SDK's examples) no solution has yet been found.
I'd like to know if someone has ever had similar problems.
Thank you in advance.
I completely understand and share your frustrations.
The current issue I am having is after a call to SetExpressCheckout() using the .NET SDK I redirect to the PayPal sandbox URL with the appropriate command and token specified on the querystring and when the browser gets to the PayPal site it says "Please log in to use the PayPal sandbox features" which is linked to the developer.paypal.com site.
If I log in first on another tab and then redirect to PayPal it still doesn't work, aarrggh!
Stefano - What type of issue are you currently having?
Peter - What particular browser are you using? There have been a few issues in the past with IE. If you are using IE, you might try using Chrome or Firefox to see if you get different results. I just tested all 3 and they were working for me. You also might try clearing all cookies and cache prior to opening up a browser and navigating to developer.paypal.com. Once you have cleared cookies and cache, open up the browser and go to developer.paypal.com and log in. Then once logged in, on a second tab pull up your website and try testing.
Clearing the cache and cookies prior going to developer.paypal.com has worked for some merchants in the past that were having these same issues.

Embedded Paypal adapative payments (using Lightbox) doesn't work on mobile web

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?
I ran into this same issue with the Lightbox flow and found the mini browser experience to work better on mobile devices.
More information regarding the mini browser experience (expType=mini) can be found here:
Adaptive Payments without modal box or popups?

Paypal within iFrame on Facebook

Double iframe here. Within the Facebook Canvas iframe, we're iframing another window to starbucks.com for our egifting section. Problem is, and what use to work, the paypal button will no longer break out of the iframes and render their page before being submitted and back into the iframes. Example, visit https://apps.facebook.com/starbuckscard/ and select paypal as an option when you get to it. This use to work ... any idea on why or what's broken/changed??? Any feedback much appreciated. Thank you.
All PayPal URL's will break out of iframes, or return an error depending on whether the browser adheres to X-FRAME-OPTIONS which is set for all pages (including Website Payments Standard) to SAMEORIGIN.
You'd want to use PayPal Website Payments Pro Hosted Solution instead, which allows itself to be embedded within an iframe.
You can do transactions on server side as well.
Here is full REST API docs and examples:
https://developer.paypal.com/webapps/developer/docs/api/