Code Monkey home page Code Monkey logo

Comments (7)

CodyEngel avatar CodyEngel commented on July 27, 2024

Hey @mikasR can you provide some additional information so we can help troubleshoot this issue?

  • Please provide a screenshot of what you seeing when the app does not come back to the foreground.
  • Please provide code snippets of your Android integration including: the SDK initialization and the payment button's setup function.
  • If possible, please provide the sandbox client id so that I can verify the REST app settings.

from android-checkout-sdk.

mikasR avatar mikasR commented on July 27, 2024

Hello @CodyEngel,

I'm sorry for the late response.

I am experiencing this issue directly on the sample app, so the code is the code of the sample app.

The sandbox client id is the following:
AdypFir7Wx7kgw1Q9CLGjH8OGa-znGnpjA6zTvJoz6jV4XT51PL_5g9FHP0q84GjgqNozzX36hGuXrJc

image
When we tap the cancel label nothing happens.

image
After the authorization it simply remains on this view.

from android-checkout-sdk.

CodyEngel avatar CodyEngel commented on July 27, 2024

@mikasR -- it looks like the returnUrl is incorrect, to run the sample app you will want to use com.paypal.checkoutsamples://paypalpay. Please update the value in the PayPal developer console, let me know if that resolves the issue.

from android-checkout-sdk.

mikasR avatar mikasR commented on July 27, 2024

@CodyEngel
I've tried that, but this is what happens:
image

That's why i changed it on the developer dashboard.

from android-checkout-sdk.

CodyEngel avatar CodyEngel commented on July 27, 2024

Hey @mikasR -- can you give it one more try? Sometimes it can take a bit for the new return url to become associated with the application. I tried the sample app using the Client ID you provided and I was redirected successfully, it took ~5 seconds of waiting on redirect screen before control was handed back to the pay sheet.

from android-checkout-sdk.

mikasR avatar mikasR commented on July 27, 2024

@CodyEngel correct. It was my mistake.
It's working now!

Thank you.

from android-checkout-sdk.

CodyEngel avatar CodyEngel commented on July 27, 2024

Thanks @mikasR really happy that solution worked!

Just in case others stumble across this issue the solution was to set the following returnUrl in the developer console: com.paypal.checkoutsamples://paypalpay

That returnUrl is required to use the sample application. Sometimes it can take a bit for new returnUrls to propagate through the system, it's usually fairly quick but sometimes it can take up to 3 hours before it's registered.

from android-checkout-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.