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

(Android)Payment fails if app has a non-alphanumeric name #197

Open
Smail-cai opened this issue Jun 19, 2023 · 7 comments
Open

(Android)Payment fails if app has a non-alphanumeric name #197

Smail-cai opened this issue Jun 19, 2023 · 7 comments

Comments

@Smail-cai
Copy link

(Android)Payment fails if app has a non-alphanumeric name

@NMGuner
Copy link
Member

NMGuner commented Aug 22, 2023

@Smail-cai can you please notify us on which version of the SDK you noticed this issue and the characters causing this. We encode values such as app name with ISO-8859-1 so will need to test how that works for your app.

@Smail-cai
Copy link
Author

The application name is [测试]Dear and the version number is 2.6.4

@mahmoudjafarinejad
Copy link
Member

@Smail-cai Thank you for the info. During our first testings with your application name and the SDK version we could not reproduce the issue. Is it possible for you to share your console logs and perhaps a recording of the failure? That would help us further to detect the culprit.

@Smail-cai
Copy link
Author

Describe the bug
The SDK uses the application name to infer the merchant name. However, if the application's name contains a non-alphanumeric name (Chinese), launching the SDK fails.

To Reproduce
Steps to reproduce the behavior:

Name your app something like "[测试]Dear"

Logs

image

Result
(image)

@mahmoudjafarinejad
Copy link
Member

mahmoudjafarinejad commented Sep 20, 2023

Unfortunately we could not reproduce the issue using the same app name and SDK version in different environments. Could you please set the logging level of SDK to verbose and share the complete console log with us in a text file or something similar?
You can set the logging level to verbose by adding this line after creating the instance of SDK:
sdk.loggingLevel = KlarnaLoggingLevel.Verbose

Also, what do you see when you call load method before authorize? Do you see any errors in the WebView at that point? (If you share a video recording of the whole flow that would be much appreciated)

@Smail-cai
Copy link
Author

I reproduced this problem using your demo
Step 1: download demo: https://github.com/klarna/kp-android-example-app
Step 2: Change app_name to [测试]Dear Lover
Step 3: Run the payment

@Smail-cai
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants