#dr_ironbeard

1 messages · Page 1 of 1 (latest)

vernal boughBOT
crisp canopy
silver brook
#

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?

crisp canopy
#

yeah that sounds about right, you can def test this out in test mode first

silver brook
#

Gotcha! And am I correct in understanding that the billing_email will get copies of all invoices, etc?

vernal boughBOT
silver brook
#

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

crisp canopy
#

yeah unfortunately we don't know a ton about dashboard flows since we mainly focus on the APIs.

silver brook
#

yeah, understandable. Do you know if PaymentMethod.billing_details.email will get copies of invoices etc?

crisp canopy
#

I don't believe it will, the customer email receives the emails afaik

silver brook
#

gotcha, thanks!