#Julio - Invoices

1 messages ยท Page 1 of 1 (latest)

split rain
#

Can you describe your whole flow/use-case? Just a need a bit more context to provide a recommendation

dry mural
#

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

Learn how to save card details and charge your customers later.

#

not clera ?

#

clear

split rain
#

Ah I gotcha. No, there's not a way to generate an invoice from a PaymentIntent

#

However, creating an invoice does generate a PaymentIntent

dry mural
#

hum

#

let me think

#

and why in the payment sheet , i can't have a the checkbox "Save this card for future payment" ?

ivory oyster
#

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.

dry mural
#

Hum ok

#

so no way, to set up paymentIntent with invoice and checkbox ?

ivory oyster
#

so no way, to set up paymentIntent with invoice and checkbox ?
Not sure what you mean by that, can you clarify?

dry mural
#

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 ?

ivory oyster
#

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.

dry mural
#

but how to attach the paymentIntent on a existing invoice ?

ivory oyster
#

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.

dry mural
#

ahhhh ok

#

so i create a invoice , and use its paymentIntent ( i dont recreate one )

ivory oyster
#

Yes, exactly.

dry mural
#

okay okay

#

thx for clarification

ivory oyster
#

No problem ๐Ÿ™‚ Happy to help