#piranhadk_24952
1 messages · Page 1 of 1 (latest)
without enabling the "Successful payments" in the customer email settings?
Why don't you want to enable this? Your use-case is exactly what this setting is for
Long story short, there are requirements that only invoices get sent a receipts. We have a platform where we charge on a customer level and an organization level. Only the organization is given an invoice and should recieve the recepit. Whereas the customer is charged using the legacy stripe.Charge.create and should not recieve the recepit.
Ah got it. I think you could use this endpoint then: https://stripe.com/docs/api/invoices/send
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hmmm gotcha gotcha. I noticed that the last line says "When sending invoices that have already been paid, there will be no reference to the payment in the email.". So even if the customer paid, will the recepit be shown? And will the email still say something along the lines of "Payment required / due"?
Agh that won't work actually
You can only send send_invoice invoices
So it would work if you only create invoices with that type, but if you do charge_automatically ever it won't work
I think you'd need to manually email the customer the https://stripe.com/docs/api/invoices/object#invoice_object-hosted_invoice_url url then in your case
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Gotcha, sounds good! Thanks for your help!
Also, real quick (I can create another thread if you want me to), when creating an invoice and customizing the description / "memo", are you able to use a hyperlink? So for example, something like this?
common_params = {'customer': "CUSTOMER_ID",
'collection_method': 'charge_automatically',
"description": "<a href="https://www.google.com">Google!</a>",
}
create_invoice_info = stripe.Invoice.create(**common_params)
Hm I don't think that would work, but recommend you just try it
You can try out this in test mode yourself
Sounds good. Thanks again for your help!