#jahirjje
1 messages · Page 1 of 1 (latest)
Hello. What specifically do you need help with?
Hello, I am defining the flow for a charge, which allows you to enter the card and on the same screen select a product and charge, I am using charge and setupintent and everything is fine, however it does not comply with 3dsecure, so I decided to combine setupintent and paymentintent but not sure how to do it
Ah gotcha. So if your customer is on session for the first charge the setupintent is unnecessary
You just need PaymentIntent
Above flow will handle 3ds
And if you need to setup future usage on the card, you can pass: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Amazing
i have a question, whats happening if i want to create the payment intent and i dont have the amount yet?
You need the amount. That's a required param: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-amount
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.