#eduardofernandes_37354
1 messages · Page 1 of 1 (latest)
Hi, what is your business use case?
We are using stripe to allow dealers execute payment in the automotive business. But we are not allow to charge the dealer while the vehicle is not delivery yet, but we need to get all information for payment intent. Today I'm using two products of stripe, Stripe Elements get recovery data from dealer (credit card info) and create payment intent and stripe API to handle in my backend.
How can I execute this flow?
const result = await stripe.confirmPayment({ elements, confirmParams: {}, redirect: 'if_required', })
This is how I'm using in the frontend
And in the backend I'm doing like this...
intent = await stripe.paymentIntents.capture(transport.payment.id, { amount_to_capture: transport.order.updates[WEBHOOK_EVENT.ORDER].newValue || transport.order.baseQuote.price, })