#sergio-paymentelement-react
1 messages · Page 1 of 1 (latest)
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
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?
yes
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
Have you tried?
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
yay!