#Shaun
1 messages · Page 1 of 1 (latest)
You have to attach it before it's used
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
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