#arshad_53441
1 messages · Page 1 of 1 (latest)
Hi there!
stripe.createToken() is a very old integration that we don't recommend using anymore.
Instead you should use PaymentIntent and PaymentMethods.
I recommend reading this guide: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
i am using laravel 9 omnipay as a gateway for this
Then I wouldn't recommend this.
But to answer your question, I don't see a way to set an email with createToken: https://stripe.com/docs/js/tokens/create_token?type=cardElement. Instead you'll need to udpate the Customer on the backend directly: https://stripe.com/docs/api/customers/update?lang=node#update_customer-email or the Charge: https://stripe.com/docs/api/charges/create?lang=node#create_charge-receipt_email