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.
- Customising Paypal Checkout Button in PayPal Payments Standard
- When PayPai and CRM are integrated, it is not authorized to initiate PayPai from CRM. in REST APIs
- does api-m.sandbox.paypal.com or the real api endpoint support IPv6? in REST APIs
- Need help to integrate PayPal Checkout (PPCP) with OpenCart? in PayPal Upgrade Community
- Getting errors when integrating standard checkout with my web site. Probably a beginner problem. in SDKs