- This topic has 13 replies, 3 voices, and was last updated 11 years, 1 month ago by ChirayuBrahmbhatt.
-
AuthorPosts
-
ChirayuBrahmbhattMemberI would like to add PayPal to my app and when visitor buy anything it takes them to Paypal without leaving my app and then redirect them to my app after completing purchase (just like iFrame view)
How Can I achieve this?
Please advise
Paul_paulParticipantI created a PayPal ‘buy it now’ button then just used the link code in a ‘go to URL’ button below the item for sale. I was just experimenting but it seemed to work ok in a native app and I returned to the app when finished. You obviously need a business account with PayPal, although I am not sure whether Apple would approve it. That’s as far as I got.
BrandonMemberYou can also use the code from PayPal in a HTML widget, I tried it in an earlier version and it worked fine, Im assuming it would still work.
Apple approval depends on what you are selling.
Paul_paulParticipantI tried the long code that includes the link to the paypal ‘buy it now’ image in a html widget and it didn’t want to work in a native app. It did work in a web app though.
Saying that, I would imagine Apples alleged rule on no more than three ‘go to URLs’ might severely restrict your selling capabilities.
ChirayuBrahmbhattMemberThank you all for your prompt response. I have tried with HTML code and it didn’t work for me. I do have a business account with PayPal as well.
The button does work but it takes me to the PayPal site.
Is there any way I can create a we view inside the app or iFrame?
Please advise
Thanks
Paul_paulParticipantI thought that was the general idea, log in to make the payment. How else would you do it?
ChirayuBrahmbhattMemberMate, don’t know how but I know you can do this with JavaScript but somehow javascripts are not working as well
ChirayuBrahmbhattMemberMate, don’t know how but I know you can do this with JavaScript but somehow javascripts are not working as well
Paul_paulParticipantIf you can figure out a way to pay for goods on PayPal without logging into your account I’m sure everyone will want to know about it! So good luck with that.
ChirayuBrahmbhattMemberMate I am talking about creating a java or php to create a webview forpaypal page inside the app page so user can login to their paypal account without leaving our app
I hope someone understands
Please let me know if this is possible
Cheers
Paul_paulParticipantWith a native app going to a URL does not leave or close the app, perhaps you don’t understand…. Mate!
BrandonMemberNot sure it will work, but have you tried using AJAX load statement to get a basic html button:
Something like this in an html widget:
<div id=”success” width=”100″ height=”100″></div>
<script>
$(“#success”).load(“http://yoursite.com/paypalbuy.html”);//page you want to use with the paypal buy code
</script>
ChirayuBrahmbhattMemberThanks buddy let me use this and will get back to you
ChirayuBrahmbhattMemberMate have tried and it works like a webview thanks buddy
-
AuthorPosts