#junaid_abbasi999
1 messages · Page 1 of 1 (latest)
Are you using Stripe Terminal?
no I have create a backend in node.
So you can do this a number of different ways. If you use Invoices, you could simply add another Invoice Item for the tip. If you use only Payment Intents, then you would need to wait to create the Payment Intent until you know the full amount.
I would recommend using Invoices for this use-case though, as it may be more complex to set up, but it will likely save you a lot of headaches
as the matter of fact I have already charge user1 means that I know the full amount. the app has the functionality to tip after user1 is charged a service fee. So I know what's the total Amount.
and I am creating this app using stipe react-native SDK.
and i want to use paymentIntents.
Hi there, stepping in and catching up.
You'd need to control this on your end and then create the Payment Intent (with the tip included in that amount).
now i can't include tip in the amount. because tip amount will be set by user1 and the paymentIntent is off-session. Can i use paymentIntent Id and just add a tip at any later stages. after the initial payment is processed?
No, what you're asking is not possible. You can create another Payment Intent for that tip amount. However, you cannot update the amount after a payment intent succeeds.
ok and how do i make sure that this paymentIntent is for tip only and the taxes will not be applied.
You can just create the payment intent, https://stripe.com/docs/api/payment_intents/create without specifying a tax behavior. You likely want to approach this a bit differently. You handle the tip amount before the creating the Payment Intent and this amount is inclusive of the tip. That is the recommended flow here.
ok one final thing, let me know if this flow is fine.
- i charge user1 with with an amount(no tips included)
- I save the charged amount on database.
- when the amount is chared off-session I ask my user1 to give tip based on the charged amount in the database.
- I create a new payment intent for tips.
That is a work around, yes.