#thefyrewire-invoices

1 messages ยท Page 1 of 1 (latest)

silver vortex
strange jay
#

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?

silver vortex
#

Yes you would need to create Invoices (which creates a PaymentIntent automatically associated with the Invoice)

strange jay
#

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?

silver vortex
#

Yep

strange jay
#

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?

silver vortex
strange jay
#

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?

silver vortex
#

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.

strange jay
#

OK awesome! Thanks for your help as usual ๐Ÿ˜„