0👍
In the scope of setup()
it seems like stripe
is undefined hence it doesn’t know what createPaymentMethod
is. You may need to change scope of your initialization of loadStripe
to make it available to setup()
function too.
Source:stackexchange.com