#zetsuman

1 messages · Page 1 of 1 (latest)

sleek knollBOT
south pumice
#

ok, what about react and useElements hook?

uneven valve
#

There are React examples on that page. Generally you can't use createPaymentMethod with Payment Element unless in a deferred flow (which I linked above)

sleek knollBOT
south pumice
#

Yes, but I still don't understand where I should pass createPaymentMethod using React Stripe Js

uneven valve
#

You'd pass it to the options hash on the <Elements /> component

#

paymentMethodCreation, that is

#

createPaymentMethod is the function you'd call on some kind of button handler