#thefyrewire-invoices
1 messages ยท Page 1 of 1 (latest)
Hi there! Orders are not currently compatible with Invoices (we mention this here: https://stripe.com/docs/orders#compatibility).
Ah yes, thanks, I do remember seeing that actually lol. So what would I need if I can't use Orders? Would it be PaymentIntents?
Yes you would need to create Invoices (which creates a PaymentIntent automatically associated with the Invoice)
Oh interesting, so I could then retrieve the PaymentIntent and use its client secret to allow the customer to pay immediately with Payment Elements?
And if I already have their payment method stored, I could pay the invoice on the server?
Yep
I can see that I can create inline price_data for the invoiceItems which is great, and I can still apply discounts and use Stripe Tax, so that's also good..
But I don't want to email the customer with the invoice, because I'd want to mirror the Orders/PaymentIntents flow and have them pay immediately with Payment Elements. Setting the collection method to charge_automatically looks like it only applies if the customer already has a saved payment method, but what would happen if they don't?
Yeah you want charge_automatically. When you finalize the invoice you can set auto_advance: false: https://stripe.com/docs/api/invoices/finalize#finalize_invoice-auto_advance. Then you can send the PI client secret to the client and confirm using Payment Element
Oh cool! So I can finalise with that set to false, then do that PI retrieval and proceed with Payment Elements or auto-charging the payment method depending on what the user wants to pick
I feel like I'm missing something, it feels like the Invoicing API is very similar to the Orders API ๐ค are there any major features I'd be missing by choosing Invoicing over Orders?
They are definitely similar! Orders is mostly for folks who want Stripe Tax but without Invoices
And it also has some other features currently, like shipping calculation.
OK awesome! Thanks for your help as usual ๐