klarna / klarna-mobile-sdk

Klarna Mobile SDK for iOS

Home Page:https://docs.klarna.com/mobile-sdk/ios/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Smail-cai opened this issue · comments

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

@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.

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

@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.

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)

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)

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