#eduardofernandes_37354

1 messages · Page 1 of 1 (latest)

celest novaBOT
upper turret
#

Hi, what is your business use case?

hardy sparrow
#

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, })

upper turret
#

What documentation are you currently following?

#

Can you share the exact link please?

In the Backend, you need to create the Payment Intent before you can make a capture call... There seems to be some missing code in between these two examples you shared

#

Are you still here?