#sergio-paymentelement-react

1 messages · Page 1 of 1 (latest)

inner tangleBOT
pulsar ferry
#

Hello koopajah

#

I would like to know if it is possible to get the payment method type (card, sepa_debit, klarna...) in the checkout form before calling to confirmPayment

old dawn
#

sergio-paymentelement-react

#

you would need to use that change handler

pulsar ferry
#

so no hook available or something like that, using change hadler I need to save the value.type in a specific variable to be used where I need it

#

does it correct?

old dawn
#

yes

pulsar ferry
#

and if the users does not change the payment method... the change event will be triggered?

#

I mean how I can get the type just before the Element is rendered

old dawn
#

Have you tried?

pulsar ferry
#

no yet but I am supposing that the change event will not be triggered

#

let me try

#

I have up and running my app

#

it seems that the change event is tiggered when the element is rendered the first time

#

nice!

#

so that will work for me 😉

#

thanks a lot for your support

old dawn
#

yay!