#Julio - Invoices
1 messages ยท Page 1 of 1 (latest)
Can you describe your whole flow/use-case? Just a need a bit more context to provide a recommendation
ok
i'm developing a mobile app in react native.
I use the paymentSheet method described here (https://stripe.com/docs/payments/save-and-reuse)
App -> call setupIntentAPI ( to create a setup Intent)
App -> display paymentsheet so user can enter his card
Then -> i create an invoice ( with the amount calculated at some point )
And -> i pay this invoice with the paymentMethod (which i got from the setupIntentSecret)
I want to know if its possible to use an PaymentIntent, but he only generates a Payment object, there is no invoice involved.
Problem is for accounting purpose, i need one
not clera ?
clear
Ah I gotcha. No, there's not a way to generate an invoice from a PaymentIntent
However, creating an invoice does generate a PaymentIntent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
hum
let me think
and why in the payment sheet , i can't have a the checkbox "Save this card for future payment" ?
Hello ๐
Taking over here
When you initialize the PaymentSheet with a SetupIntent, you're actually setting it up for future usage. So it wouldn't show the toggle.
so no way, to set up paymentIntent with invoice and checkbox ?
Not sure what you mean by that, can you clarify?
ok let me change the question
What if i want to make my customer pay, AND save card for later payments AND generate and invoice ?
I believe you'd want to start with the invoice first and then using the clientSecret to initialize and present the paymentSheet.
PaymentSheet with a PaymentIntent should show that checkbox.
but how to attach the paymentIntent on a existing invoice ?
You can't attach a PaymentIntent to an existing invoice. These are two separate concepts.
A PaymentIntent won't create an invoice as well as cannot be attached to an existing invoice to mark it paid.
An invoice once finalized, will have its own PaymentIntent associated with it which you can use to initialize the PaymentSheet and make the payment.
Yes, exactly.
No problem ๐ Happy to help