Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't handle initialize error Klarna Payment View #121

Open
AlexXer opened this issue Dec 6, 2021 · 3 comments
Open

Can't handle initialize error Klarna Payment View #121

AlexXer opened this issue Dec 6, 2021 · 3 comments
Labels
android investigating Bug/feature is being investigated.

Comments

@AlexXer
Copy link

AlexXer commented Dec 6, 2021

Describe the bug
KlarnaPaymentView can't be initialized. It fails on "SentInitializeResponse" event. What is the cause of it?

To Reproduce
Steps to reproduce the behavior:

  1. Get client token
  2. Start klarnaPaymentView initialize method
  3. Client token is verified
  4. We have I/chromium: [INFO:CONSOLE(0)] "Uncaught (in promise) TypeError: Failed to fetch", source: file:///data/user/0/com.alexxer.myapplication/files/kp_index.html?mockkp=true&storeall=true&loglevel=0&endpoint=aws

Screenshots

image
image
image

Device and version:

  • Pixel 5
  • API 29
  • Klarna In-App SDK version 2.1.0

Impact Level
Blocking development

Additional context
Add any other context about the problem here.

@Useftro
Copy link

Useftro commented Dec 7, 2021

I have that issue too!
Have you found any possible solutions?

@NMGuner NMGuner added android investigating Bug/feature is being investigated. labels Dec 8, 2021
@NMGuner
Copy link
Member

NMGuner commented Dec 8, 2021

Hi, firstly thank you both for reporting this.

@AlexXer I took a look into our analytics and found some sessions from your app that are logging no callback registered errors. This error happens if you don't initialize the KlarnaPaymentView with a callback or do not call the registerPaymentViewCallback method if it is not initialized with the callback instance. Hence, could you please share how you are initializing the view or registering the callback.

@Useftro I do not have the details for your application but it may have the same problem, can you take a look at the callback too, please.

If that part of the integration is missing, you can check our documentation: https://docs.klarna.com/in-app/inapp-android-overview/klarna-payments-native/

@aligokdemir
Copy link

hello @NMGuner I'm also getting a blank view when I try to initialize the view with token and I'm also registering the callback as stated in the docs. However, I'm still getting no callback registered error from your sdk like below. what might be the reason for this 🤔

a: SDK Event: internalError
                                                                                                    {
                                                                                                      "meta": {
                                                                                                        "timestamp": "1667937524.813000",
                                                                                                        "eventName": "internalError",
                                                                                                        "sessionId": "7250ae5d-7dcd-4b9e-bae5-bbae9d9a9d28",
                                                                                                        "appSessionId": "02f44208-67e3-4796-ba17-bc3ca791240c",
                                                                                                        "level": "error"
                                                                                                      },
                                                                                                      "device": {
                                                                                                        "system": "android",
                                                                                                        "model": "sdk_gphone64_arm64",
                                                                                                        "osVersion": "12"
                                                                                                      },
                                                                                                      "merchant": {
                                                                                                        "name": "International",
                                                                                                        "buildNumber": "664",
                                                                                                        "packageName": "com.trendyol.international.stage",
                                                                                                        "version": "6.25.1.664",
                                                                                                        "minimumOSVersion": "23",
                                                                                                        "targetOSVersion": "33",
                                                                                                        "kotlinVersion": "1.7.20"
                                                                                                      },
                                                                                                      "sdk": {
                                                                                                        "packageName": "com.klarna.mobile",
                                                                                                        "version": "2.3.2",
                                                                                                        "variant": "basic",
                                                                                                        "buildNumber": "56",
                                                                                                        "integration": "payments",
                                                                                                        "deprecated": "false",
                                                                                                        "featureset": "[\"experiments\",\"api-features\",\"application-foreground\",\"sdk-version-fix\",\"sandboxed-internal-browser\"]"
                                                                                                      },
                                                                                                      "sdkConfig": {
                                                                                                        "version": "v2.0.6-b700afb8e46"
                                                                                                      },
                                                                                                      "error": {
                                                                                                        "name": "noCallbackRegistered",
                                                                                                        "message": "No callback registered."
                                                                                                      },
                                                                                                      "extraParams": {
                                                                                                        "loggedFrom": "com.klarna.mobile.sdk.a.n.a"
                                                                                                      }
                                                                                                    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android investigating Bug/feature is being investigated.
Projects
None yet
Development

No branches or pull requests

4 participants