#Matt11 - Setup and Payment Intent
1 messages · Page 1 of 1 (latest)
A payment intent allows you to charge a user and possibly save their card, a setup intent intent is for saving payment details without taking a payment
Have you seen many of our docs on how to use these? Are you looking for a place to start with some payment flow?
For a PaymentIntent that you directly create, no. You can confirm it any time after creation
They don't expire but you can cancel them
even after 2 weeks?
Yep
The only exception I can think of is Checkout. Checkout Sessions will expire after 24 hours and they automatically cancel their PI at that point
and PI do something on the customer card? e.g: subtract money from the available amount?
But that is not relevant if yo are creating these things yourself?
Can you clarify your question there? I am not sure what you are trying to do with a PI
I have two type of plans on my app. One with trial period and one without.
During the signup I'm asking the card to che customer.
In the first case I need to create a PI and charge it after 7 days, in the second case I need to charge it immediately
to simplify the logic I would like to crete PI for every case
but I'm not sure if a PI without charge pick some "virtual" money from the card
like pre authorization
Are you using Stripe Billing for this trial/subscription logic or are you doing that yourself and working directly with our payment intents?
I don't know about Stripe Billing. I'm doing it with elements + apis
You may want to check it out, it is more complicated but more powerful so your work could be a lot easier. https://stripe.com/docs/billing
Otherwise, in the case that you described, you probably would want to have seperate logic for the trial vs non trial case. You would want to collect their CC info with a setup intent initially, even if you are charging their card via a PI later
and what if I create PI for the two cases? stripe do some sort of pre-authorization on the customer's card?
I'm asking because the CTO would like to use PI in the two scenarios 😄
I get what are you saying and you're right, SI it would be better
but this is not the PI right?
Hi 👋 I'm stepping in for @merry cipher give me a sec to catch up.
but this is not the PI right?
What are you referencing here?
The hold and capture approach uses PIs
I'm worried that an unconfirmed PI will create a charge on a user card
I don't know how to say.. like a "blocked" amount on the card
but not really charged
Right, like a "pending" charge
yep
but that a customer sees on his bank account
iìll give you an example
suppose a customer has 1000€ on his card
i crete a PI of 500€ but I'm not confirming it yet
what the customet sees on his private bank account?
1000€ or 500€?
Banks generally display "pending" charges with are authorized but not captured on your online statement but it does not reflect in your total balance. Once the charge is captured it updates your balance.
so an unconfirmed PI is not reflecting on bank account?
Place a hold on a card to reserve funds now, but capture them only after you complete a service. For example, a hotel may authorize a payment in full prior to a guest’s arrival, then move the money when the guest checks out.
This is in the introduction to the page linked above