#dr_ironbeard
1 messages · Page 1 of 1 (latest)
I think you can store emails under billing_details on the PaymentMethods themselves
https://stripe.com/docs/api/payment_methods/create#create_payment_method-billing_details
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hmm, it's been awhile since I've dug into the stripe code I wrote. Trying to recall the flow.
So when they checkout on my website, I first generated a Stripe Customer using the email they provide, and then I create a Subscription, and pass a stripe secret to the Card element front end, which gets the CC info from the customer.
I suppose I could just grab a billing email from them at some point during the checkout process and update the PaymentMethod after it all goes through, maybe in a webhook?
yeah that sounds about right, you can def test this out in test mode first
Gotcha! And am I correct in understanding that the billing_email will get copies of all invoices, etc?
On second thought..the billing_details field of a PaymentMethod looks like it might not be the same as the "billing email" option on the dashboard
Since, on the dashboard, it seems more related to the Customer than the PaymentMethod
yeah unfortunately we don't know a ton about dashboard flows since we mainly focus on the APIs.
yeah, understandable. Do you know if PaymentMethod.billing_details.email will get copies of invoices etc?
gotcha, thanks!