#sergio_sanchez

1 messages · Page 1 of 1 (latest)

lean smeltBOT
high plank
#

Hello ynnoj

#

Maybe you know but the PaymentMethodMessagingElement will show klarna option depending on several conditions: amount, currency and countryCode

#

I would like to know if it is possible to know when Klarna is shown in the message without having all the conditions hardcoded in our code

#

I was thiking about if the onReady callback, I can have info about what payment method has been rendered or not

harsh root
#

AFAIK it's automatically computed based on the params you pass (i.e. amount, currency, countryCode)

high plank
#

yes that is true, but in order to control that frtom our side, we would like to know when Klarna info is rendered

#

because based on that one, we have some collateral actions we need to take

#

do you know if onReady callback provide info about which payment methods have been rendered?

#

or if we have the option to ask to Stripe "hey! with this amount, currency and countryCode, klarna will be an option for the user?"

harsh root
#

I don't believe that is supported no

high plank
#

😦

#

ok!

#

any recommendation here? maybe hardocde in advance which cases will have klarna as an option

#

but not sure about which are all the conditions

#

I suppose that it changes based on currency/amount/country

harsh root
high plank
#

ok 🤔 I would try to think about a solution here