-
Notifications
You must be signed in to change notification settings - Fork 12
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 - issue related to KlarnaPaymentView and Android Compose #194
Comments
Hi, unfortunately KlarnaPaymentView as of today does not support changing the category thus it logs an error and ignores the new value. We have allowing changing the category in the roadmap with no exact date. That means the only option right now is to create a new view if the category is changed. We will try to priotize this for better compose support but can't promise if it will happen soon enough.
|
Hello, thx, for briefing. I get the idea but I would like to not create new Views and recompose. Did you try and reproduce using your widget in Android Compose or did other merchant have similar issue? Or could there be a chance with an issue related to destroying existing KlarnaPaymentView? Is there a chance to add additional method - isInitilized? |
Up |
@NMGuner any news on this topic? |
Describe the bug
Klarna SDK does not update selected category when adding to Compose
To Reproduce
Steps to reproduce the behavior:
10:25:48.727 V Init + pay_later
10:25:48.883 V klarna factory pay_later
10:25:48.884 V klarna update: pay_later
10:25:49.448 V Init + pay_later
10:25:56.264 V Init + pay_later
10:25:56.716 V Init + pay_later
10:25:56.775 V Init + pay_later
10:25:59.262 V Init + pay_later
10:26:01.499 V Init + pay_later
10:26:01.580 V klarna factory pay_later
10:26:01.581 V klarna update: pay_later
10:26:02.027 V Init + pay_later
10:26:30.931 V Init + pay_later
10:26:31.978 V Init + pay_now
10:26:31.993 V klarna update: pay_later
10:26:32.431 V Init + pay_now
10:26:35.415 V Init + pay_now
10:26:35.864 V Init + pay_now
10:26:35.891 V Init + pay_now
10:26:37.313 V Init + pay_now
10:26:38.562 V Init + pay_now
10:26:38.572 V klarna update: pay_later
10:26:38.994 V Init + pay_now
10:26:40.395 V Init + pay_now
10:26:40.833 V Init + pay_now
10:26:40.859 V Init + pay_now
10:26:41.325 V Init + pay_now
10:26:43.127 V Init + pay_now
10:26:43.188 V klarna factory pay_now
10:26:43.189 V klarna update: pay_now
10:26:46.292 V Init + pay_now
10:26:47.243 V Init + pay_now
10:26:47.271 V klarna update: pay_now
10:26:47.713 V Init + pay_now
Init in remember function
klarna update in AndroidView#Update
klarna factory in AndroidView#Factory
Triggered steps from logs:
Expected behavior
Kategory in Klarna SDK should change, alternatively Klarna widget in compose
Screenshots
https://drive.google.com/file/d/1tWLF3Sndk67gHTiyECTHZapCVvmyTFoW/view?usp=sharing
Device and version:
Merchant Name
modivo.sa
Impact Level
Mid
Additional context
Is there a chance to add additional method - isInitilized?
The text was updated successfully, but these errors were encountered: