#richie138-automatically-invoice
1 messages · Page 1 of 1 (latest)
Unfortunately there is not a bulk update way to do that. You will have to do it per-account
What do you mean?
I want it to be per-account, I just want the receipts to go automatically so I don't have to manually send them each month
Apologies there is some confusion here
So this is a setting on a subscription itself
Accounts themselves aren't specifically enabled/disabled for it
Where is the setting?
Apologies meant to link it
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You want charge_automatically
It does charge automatically
I want it to send the receipt automatically
But only to certain customers or subscriptions
Oh sorry that is send_invoice
do you currntly have it set to that and the emails are not being sent?
send_invoice is a value that collection_method can have
Yes apologies, it seems like we aren't quite on the same page
I have 1000+ subscribers, they all are charged automatically every month, this is a requirement
Right now no one receives a receipt
I want the receipt to be automatically sent after successful automatic charge ONLY to certain customers
Right now I see there is a setting I can enable in dashboard to automatically send receipts to ALL customers - I do not want that, I only want it for certain customers or subscriptions
Ah thank you. That was very helpful. Looking in to this, I am only aware of the account-wide setting myself
Yes, I think that is probably the case, although it would be helpful to many I'm sure if it could be configured more granularly
So, how would you suggest I go about it programatically? Or does some code exist that can help?
I see there are webhooks for successful payments, I thought about setting metadata on the customer or subscription object, but then I'd have to go back and query stripe for the customer or subscription. Updating the paymentIntent with an email triggers the receipt to be sent. So it's possible to build but seems inefficient this way, any suggetions?
Unfortunately I'm not seeing a more granular setting or built in way to send Stripe emails like this.
That webhook solution and sending your own receipts can definitely work well
If you don't want to query Stripe so much you can always record customer IDs/emails in your own DB
But yes otherwise metadata would probably be the best way to store that on the Stripe side
Are you aware of any code or places to look that someone would have already done this?
Unfortunately not. We have demos and whatnot on our webhooks but not this specific usecase
Ok thanks