#bart_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1356665000378372459
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! Can you share an ID from an object related to your testing here?
Sure. One sec
ch_3R97FnBQmfuIc3Lj1lsjmc8m
That's from one of the connected accounts in a sandbox. The business -> customer emails -> payments are turned off.
Do you have one where that's from where that switch is turned on? And are you providing receipt_email when you create the Checkout Sessions?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
No to the first question, but yes to the second. If you look at the charge.updated event for that charge ID, you'll see the receipt_email is set.
Ok, then you should get a receipt if it's turned on, and in livemode.
So turning the settings on and NOT providing receipt_email looks to auto-populate receipt_email (ch_3R97lrBQmfuIc3Lj2yiCYHww).
That email likely just came from the Customer, ya?
And when on and receipt_email is provided, receipt_email takes precedence (e.g if email != customer email)
Cool, seems straight forward enough. How about invoicing though via API?
In regards to receipt emails
There isn't an option on invoice.create for receipt_email, but I know I get a callback for the related payment intent. Wondering if I need to update at that point
So tl;dr ensure connected account has customer emails turned on and it "just works." To be extra safe though, need to set receipt_email on the PI in both cases.
Can't hurt if you're creating it, ya.
Cool, thanks for the help.
You're welcome! ๐