Best way to integrate PayPal donate in Android? - android

I am developing an app. Now I need to integrate PayPal donate in my Android app. I did a lot of searching, and I got two methods. But I don't know the difference between these methods and which is the best method. What is the best way?
Method 1:
PayPal Android SDK With Multiple In-App Payment
Method 2:
PayPal Integration in Android

Method 1 is more beautiful and easy for the user, a better HIM.
And more understandable.

Related

PayPal payment integration for REACT NATIVE with latest lib android + ios

Can any body provide a swipe solution with latest react-native PayPal library ?
I have spent a week but not getting a proper solution.
There are many old and incomplete solution on net but not a proper and
complete solution for new developers.
Resources :
https://www.npmjs.com/package/react-native-paypal
https://github.com/MattFoley/react-native-paypal
https://github.com/sharafat/sample-code-php
Unfortunately, there isn't a single repo that is up to date and maintains by the community as far as I know. That's why your options are limited.
Utilize PayPal APIs
PayPal has various APIs for different use cases that you can pick up without worrying about the SDK itself. They give you lots of those functionalities, sure it might not be smooth as the SDK itself, but it can solve your problem, nicely.
In case you are developing for both mobile and the web, you can use your APIs for both of them. Becuase they do not depend on the specific platform.
Solution
My solution for this is pretty straightforward. Do not use the PayPal SDK if you don't want to mess with Native functionality and not exactly sure why you need it. PayPal has a various set of APIs that you can use on your server side or client side without touching the native code. Here I give you a simple scenario that using ExpressCheckout APIs and handle on the server side.
For all below steps, you can use PHP, Node or any other server-side languages. I only briefly tell you the steps and the rest are on you!
1. Create an access token for your transaction. Follow below link for details.
https://developer.paypal.com/docs/integration/direct/make-your-first-call
2. Create a payment transaction. You need to pass your payment details such as currency and total amount. In this step, you can pass your 'return_url' and cancel_url too. Make sure to attach your order id or order code to both of them, so you can track the orders when either of them triggered and change your order status accordingly.
https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/advanced-payments-api/create-express-checkout-payments/
3. Send the payment URL to React Native and load it by WebView.
In this Step, you can use the WebView component in React Native and load the PayPal URL inside. Later for checking whether the payment is done, you can either use a throttling function or use other alternatives such as WebSocket. The goal here is to know whether the transaction is done or canceled.
When the payment is done. get rid of the WebView and redirect the user to thank you page and any other things you need to do after the user payment is done.
There might be more elegant ways to do this, but I believe for simple scenarios (or even more!) this is sufficient.
As Danial suggested above, if you do not want your app do be dependant on third party react native libraries then try integrating paypal with a WebView wrapper.
Here is how I did it Integrating Paypal in your react native app
Screenshot attached
link=
https://www.npmjs.com/package/react-native-paypal-lib
Use this Library for React Native Application It's very simple to implements.follow these steps for implementation.

Implement google/facebbok login for an android app

what is the simplest way to implement google/facebook login for an android app?
I'm bamboozled by all the different ways. Some online examples look outdated, and some I'm not clear when to use one over the other.
This is an opinion questions, so I will give you mine. The easiest way is to use the SDK's provided by Facebook and Google directly and follow their online tutorials. I have tried many different solutions, and find that at the end of the day, the cleanest and most extendible approach is to implement the vendor-provided SDKs directly (it also makes upgrading easier, and makes you less dependent on 3rd party restrictions).
Google integration guide:
https://developers.google.com/identity/sign-in/android/start-integrating
Facebook integration guide:
https://developers.facebook.com/docs/facebook-login/android

Extend android app features

I'm developing a simple application that has a few emoticons, and I want to make a functionallity that let people pay for new emoticons.
What's the best way to accomplish that?
I've been reading about licensing but I'm not sure if that's what I need (I'm kinda new on Android programming)
Thanks in advance
Ezequiel
I was looking in Android documentation, and the best approach seems to be In-App Billing
http://developer.android.com/google/play/billing/billing_integrate.html
In-App Purchase (IAP) will be the best way to implement pay for emoticons in your android app.
Here are some tutorials and examples to get you started.
https://blahti.wordpress.com/2014/07/30/how-to-add-in-app-billing-in-android-part-1/
http://www.theappguruz.com/blog/implement-in-app-purchase-version-3
https://github.com/anjlab/android-inapp-billing-v3
http://www.codeproject.com/Articles/1009240/How-to-Implement-Android-In-App-Purchases

Is it possible to accept payment in all currency in my android app using google checkout?

I am trying to integrate payment gateway in my android app.
Purpose of app is to buy online e books.
Site is already Developed and it is using EBS service for payment.
To be specific App is designed for Asian countries only.
Can anyone help me regarding this?
Do i need to simply call my site URL for this or it is not a practical approach.
Any help would make work my simpler as i am not familiar with this stuff.
Please help me if you have experience with it but please do not just copy paste links as i have gone through many sites for that.
Here, EBS support you can find the API that EBS provides. There is no specific API currently available for android. I think you should have to implement it at your server side and make a call with web services.

Is there any other payment module other than Paypal?

I am developing an e-commerce application in which I want to implement a payment module.
Looking for payment modules I found that there is a Paypal library available for Android.
I want to know if there are any other payment libraries?
I'm currently using CreditCall... it has an XML API to do it. It also offers a Java library that automates the XML parsing. It allows you to pay using credit or debit card, as well as Paypal, all that through eKashu.
Documentation + a basic example
CardEaseXML API Download
I think you may use Google Checkout, but I am not certain about this. Perhaps you may have an API for that. Just have a look.
Google Checkout
API Information - You can find examples at the bottom

Categories

Resources