#bart_api

1 messages ยท Page 1 of 1 (latest)

tawny hornetBOT
#

๐Ÿ‘‹ 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.

random spindle
#

Hi! Can you share an ID from an object related to your testing here?

earnest wadi
#

Sure. One sec

#

ch_3R97FnBQmfuIc3Lj1lsjmc8m

#

That's from one of the connected accounts in a sandbox. The business -> customer emails -> payments are turned off.

random spindle
earnest wadi
#

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.

random spindle
#

Ok, then you should get a receipt if it's turned on, and in livemode.

earnest wadi
#

So turning the settings on and NOT providing receipt_email looks to auto-populate receipt_email (ch_3R97lrBQmfuIc3Lj2yiCYHww).

random spindle
#

That email likely just came from the Customer, ya?

earnest wadi
#

And when on and receipt_email is provided, receipt_email takes precedence (e.g if email != customer email)

random spindle
#

Yes.

#

I believe that's correct.

earnest wadi
#

Cool, seems straight forward enough. How about invoicing though via API?

random spindle
#

You can do that, yes.

#

What questions do you have about it?

earnest wadi
#

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

random spindle
#

You shouldn't have to.

#

I believe the Customer's email is enough.

earnest wadi
#

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.

random spindle
#

Can't hurt if you're creating it, ya.

earnest wadi
#

Cool, thanks for the help.

random spindle
#

You're welcome! ๐Ÿ™‚