#Nick-hosted-invoice
1 messages ยท Page 1 of 1 (latest)
Thanks!
Sorry, I'm not finding a way to do that currently.
Ok, maybe a follow up question then, is there an easy way to send a custom link to the customer? Ie, I'd have a payment page on my end, or would I also have to write the email sending on my end?
You would need to build the email sending as well, there isn't a way to to adjust our invoice email templates so that they point to a custom page.
Trying to infer your overall goal here, are you trying to build a flow where your customers are able to pay for an invoice and update their customer information (such as billing address) all at the same time?
Yeah we have a custom invoice to send them once the invoice is paid, and we include fields like the payment method information and the billing address in our custom invoice, but since the page doesn't ask for the billing address, we can't attach it.
Also noticing that there is no payment method information on the subscription or invoice when you process these send_invoice subs, which I thought was weird
Guess the only way to attribute is via the charge object?
Gotcha, thank you for that. This does sound like a flow that we don't have a pre-built page for. I was thinking that you might be able to leverage the Customer Portal, but that wouldn't be a single unified flow and wouldn't let you require the collection of billing address information, so I think building a custom page for this is going be the best route.
Correct, since the invoices are being sent to the customer to pay, they're not inheriting default payment methods and the related payment information will be on the associated Charge/Payment Intent objects.
Cool, well thanks for the info. My Hackathon project just got a lot hard ๐น
Any time, sorry it wasn't more helpful. Best of luck with your project!
Another question - for the custom invoicing page I'm going to have on my end, what flow/endpoint would I use to go about actually paying the invoice?
Assuming that it would involve a setup intent to get the card added
๐ stepping in as toby had to step away.
If you want to trigger payment of an invoice yourself you would use https://stripe.com/docs/api/invoices/pay
Let me know if I'm missing context here
So to do this then, at the time of subscription creation, would I go back to the default collection method rather than passing send_invoice?
Nope you can force payment of an invoice using that endpoint with send_invoice
So i guess I'm in a sort of "chicken-and-egg" scenario. I can't create the subscription without a payment method unless I use send_invoice, but if I use send_invoice Stripe will send the invoice, when I want to send them my own invoice + link
It will create with status incomplete which is fine, but I don't see a field to make it expire beyond the 24 hour mark?
You can use send_invoice and set auto_advance false on the invoice
Then it won't send
You would use https://stripe.com/docs/api/invoices/finalize to finalize the invoice after you create the Sub
And pass auto_advance: false
Then you can send the invoice to the customer yourself
I'll play around with that. Thanks!