i integrate stripe payment gateway and i have 1 question.
It is possible to retrieve " email" from the card info?
i am using test "4242424242424242". i got this value from the field: country, brand, last4, exp_month,exp_year
and when i try the email field it is null;
that means i have to create form field for email??
b/c i want to send email, after successfull transaction ;
@aronaman you can’t get email or customer information from the card info unless you have passed to stripe at the point you create your transaction.
If you want to create a customer in stripe and then attach an order to it (or set up a recurring order for your new customer) that’s well documented in stripe api.
If however you are creating an order for a logged in user you don’t need to get email details from stripe as you should have access to this in your Auth session,
@aronaman when you’ve finished your testing at stripe you just need to switch your api keys to the live keys which you can get it you toggle out of the developer mode.