Code Monkey home page Code Monkey logo

Comments (6)

braebot avatar braebot commented on August 16, 2024

@sleepnova, have you ensured that you replaced the client_id and email address in the SampleApp (SampleApp/src/com/paypal/example/paypalandroidsdkexample/MainActivity.java) before you deployed it to the device? The Authentication error you noticed in the logs indicate you have an invalid client_id.

If you have, then try completely uninstalling the app, and reinstalling your app. Some users have reported similar errors when updating the SDK.

from paypal-android-sdk.

sleepnova avatar sleepnova commented on August 16, 2024

@braebot

I have replace follow two constant

private static final String CONFIG_CLIENT_ID = {USER_NAME};
private static final String CONFIG_RECEIVER_EMAIL = {EMAIL_ID};

with my Sandbox Business test account

Classic TEST API credentials
Username: {USER_NAME}

and

Account information
Email ID: {EMAIL_ID}

in my developer account. Please tell me if was doing anything wrong!

from paypal-android-sdk.

braebot avatar braebot commented on August 16, 2024

Please double check that you're using the correct environment extra (EXTRA_PAYPAL_ENVIRONMENT). Note that there are separate client_id values for ENVIRONMENT_PRODUCTION and ENVIRONMENT_SANDBOX.

from paypal-android-sdk.

sleepnova avatar sleepnova commented on August 16, 2024

I use ENVIRONMENT_SANDBOX!

from paypal-android-sdk.

braebot avatar braebot commented on August 16, 2024

Ah, I see the issue (missed it the first time). From what you've provided, it appears you are using the Classic API Username instead of the application client_id. To fix, log in to developer.paypal.com, navigate to Applications > My Apps > the name of your app. Open the 'REST API CREDENTIALS ' window, and you'll see a sandbox and live client_id. Copy the appropriate id into your app.

If that does not fix your problem, then please open an issue with our support team at paypal.com/MTS , so that someone can personally verify your account configuration and SDK setup.

from paypal-android-sdk.

sleepnova avatar sleepnova commented on August 16, 2024

Oh, ya! It works! Thank you very much. 👍

from paypal-android-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.