#Shaun

1 messages · Page 1 of 1 (latest)

jade stratusBOT
red pine
#

You have to attach it before it's used

dusky surge
#

So in my flow I create a payment intent then return the client secret so I can display the payment element:

{"clientSecret":"pi_2N8VcB9GwWIyQ6JW1blklzZK_secret_bfap1odpXmGpAaTO3zU96acMK"}

#

I then fill in the form and create an order by calling my api

#

This calls stripe to confirm payment

red pine
#

I would recommend looking into this section of the docs for Payment Element, as it describes exactly what you're trying to do: https://stripe.com/docs/payments/quickstart#save

Learn how to embed a custom Stripe payment form in your website or application. Build a checkout form with Elements to complete a payment using various payment methods.