1 min readJul 17, 2020
Great post, I recently implemented this but was receiving the error "You must provide a Stripe Element or a valid token type to create a Token."
To resolve this issue I had to change self.cardNumber to self.card in the purchase method