#predeep-si
1 messages · Page 1 of 1 (latest)
Hi there, looking at the screenshot, this is a SetupIntent, this is used to collect the customer's PaymentMethod intended for future payment.
What are you trying to achieve?
hi, thanks for the response
some customers are reporting seeing 0 amount in the SCA modal after they add their card info when purchasing a plan from our webapp
This is because for SetupIntent, it only authenticates with $0 during the setup (and if prompted for 3DS, hence why the screen is shown), there is no charge being made at the time.
the payment is also made for 0 amount
If you are planning on making a charge at the time the customer is being prompted, you should consider PaymentIntent and leverage the setup_future_usage field, to allow for this and future payments with this payment method.
https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage
one user recently made a successful transaction for the same flow
let me share my current implementation flow
- create customer
- setup intent
- attach payment method
- charge the intent
note: we're not using stripe subscriptions in our app
this problem only happening for a few customers
- after creating intent customer, we're getting the message setup_intent.setup_failed in stripe
yes that can happen, not all 3D Secure attempts succeed, maybe the user failed to complete the challenge. Normal.
actually I'm trying to understand the reason behind 0 amount shown in the SCA modal
makoto explained it
that's what a SetupIntent is
if you use a SetupIntent, the 3D Secure page will have a zero-amount in it
so probably what you do is create SetupIntent -> then create PaymentIntent immediatly
which is wrong, you should just create the PaymentIntent directly and use that to collect + charge + save the card all at once (https://stripe.com/docs/payments/save-during-payment)
one user recently bought the plan successfully, using the same flow and the card was a 3D secure one