How to integrate paypal payment gateway in my android app without using braintree sdk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to integrate Paypal payment in my android app. I dont want to use Braintree sdk. I tried https://github.com/paypal/PayPal-Android-SDK
. The paypal login page is showing. But i cant login. The sdk is giving to below error.
E/paypal.sdk: request failure with http statusCode:404,exception:
E/paypal.sdk: Exception parsing server response
org.json.JSONException: End of input at character 0 of
at org.json.JSONTokener.syntaxError(JSONTokener.java:460)
at org.json.JSONTokener.nextValue(JSONTokener.java:101)
at com.paypal.android.sdk.cw.m(Unknown Source:7)
at com.paypal.android.sdk.fm.d(Unknown Source:0)
at com.paypal.android.sdk.ci.a(Unknown Source:21)
at com.paypal.android.sdk.cm.a(Unknown Source:58)
at com.paypal.android.sdk.cq.onResponse(Unknown Source:45)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:504)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
request failed with server response:
E/paypal.sdk: INTERNAL_SERVER_ERROR
How to proceed with this paypal sdk? Or is there any alternative way (not braintree) to integrate paypal sdk in android?
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Getting errors when integrating standard checkout with my web site. Probably a beginner problem. in SDKs
- Need help to integrate Advanced Checkout (PPCP) With WHMCS in PayPal Upgrade Community
- How can I integrate PayPal to enable direct tipping features between users on a content platform? in REST APIs
- I need to integrate a recurring payment with a variable for a pay-as-you-go product in REST APIs
- Need help to integrate PayPal Checkout with Ecwid in PayPal Upgrade Community