#Manu-set-receipt-email

1 messages ยท Page 1 of 1 (latest)

smoky oak
#

Hello ๐Ÿ‘‹
Juggling between a few threads at the moment
give me a few to catch up ๐Ÿ™‚ thanks

pseudo raptor
#

Absolutely, thank you!

smoky oak
#

Thank you for your patience
Looking into this

#

I'm not seeing anything on the subscription itself
now looking into alternatives

#

So a subscription object should have a latest_invoice linked to it
You can expand it to find the PaymentIntent ID and update it using PaymentIntent API
However, I'm not sure if it would send the receipt retroactively

pseudo raptor
#

Thank you for the response. I'm looking into sending receipts automatically, currently we are using test clocks to simulate different scenarios and need the receipts via email

gentle orchid
#

Hi @pseudo raptor, stepping in for @smoky oak as they need to step away. By flipping the settings mentioned above, receipts will be sent automatically. However, this won't occur in testmode, as we don't want to spam emails in testmode.

#

You can generate a receipt in testmode via your Dashboard

pseudo raptor
#

I just read that

gentle orchid
#

By viewing the PaymentIntenet and clicking "send receipt"

pseudo raptor
#

So I turned on the option to send receipts automatically and sent a receipt from the latest payment via the dashboard

#

receipt arrived fine

#

I guess the only way to make sure this works in prod would be to make a payment and see if the email with the receipt arrives, right?

gentle orchid
#

Yes, though testing in livemode is technically against card network regulations. Really you should just trust that it works since it works in testmode when you send the receipt ๐Ÿ™‚

pseudo raptor
#

Okay, thanks again bismarck!