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/
Related
How would you redirect an "action" property on a form to another page in the ionic application?
Background: I'm using peach payments payment widget, and once the payment is done, it redirects you to any http or https site. Now for web, that's fine, but for ionic, that's obviously not that great.
Is there some internal http/s url Ionic uses to serve on the users phone for me to redirect to (don't think so), or is there some other way I haven't even thought about to redirect to another page in the users application?
<form action="https://some-dumb-external-site-i-dont-want" class="paymentWidgets" data-brands="VISA MASTER AMEX"></form>
Edit: Using http://localhost:8080/xxxx, only works on Android and not IOS
You might want to do the whole thing in an In-App Browser and let Peach Payments handle all the redirects there. Obviously, this isn't the best UX, but for hybrid it might be good enough.
There seems to be a way to do it using an iframe but this looks rather hacky and, perhaps, brittle and unmaintainable.
let url = document.URL.split('#')[0]
Should be something like http://localhost:8080/xxxx
I have issue with paypal when request api access.
I have click on selling tools -> API access -> update. Then it redirect to the page https://www.paypal.com/businessmanage/credentials/apiAccess.
After the page fully loaded. It don't display the text below the Learn more link. So I can't process more.
I have changed to different computers, phones, internet connections, browsers but it not solved the problem. I have created another account but it still meet that issue and I don't know why some my friends have used Paypal but don't have this issue. And they still can't solve my situation.
So please help me!
Paypal access API page not display fully
Using a standard Paypal merchant account to create a pay button, integrated into a "button" on our CMS (mobeefox.com) via URL.
Using this standard function, end user lands on a non-responsive form.
Is it possible to create a URL towards a responsive landing page for payment without developping?
Thanks in advance!
The user will only be redirected to responsive landing page if they use mobile device to access it. On desktop, the landing page will stay as it is. Also, note that the responsive page (or mobile-optimized page) will not work under certain circumstances such as if the button has discount amount etc. More information on it: https://developer.paypal.com/docs/classic/products/mobile-paypal-payments-standard/#usecases
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.
I have a web app at www.mydomain.com/webapp and its set up with Google Analytics. I create a facebook app at apps.facebook.com/webapp and iframe in the above url.
Is there a way to distinguish activity of users on facebook from users on mydomain?
Thanks for any help and direction you can give me.
You could use JavaScript to determine that your page is displayed in an iframe – but that would also be true if maybe other sites embedded your page.
A better way would be to check for the [signed_request][1] parameter that gets POSTed to your app on initial load into the iframe. (If you were paranoid about someone “faking” that, you could also verify the signed_request.)
Once you figured out that your page was actually loaded inside Facebook, it should be easy to execute the appropriate JS code to send that info to Analytics.