#harry_api

1 messages ¡ Page 1 of 1 (latest)

floral ridgeBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1397905529548050525

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

terse marlin
#

hi there!

tulip harbor
#

hi

terse marlin
#

yes that's normal, in the latest API version, the Invoice no longer contains a payment_intent property.

#

instead, you need to do expand => ["latest_invoice.confirmation_secret"] to retrive the client secret

tulip harbor
#

okay

#

Is that all that I would require for opening stripe elements on frontend usually I send them following

                            'payment_intent_id' ,
                            'stripe_client_secret',
                            'stripe_account_id' ,
                            'stripe_redirect_url',
                            'stripe_customer_id'
#

we are using stripe connect

terse marlin
#

the Payment Element itself only need the client secret. if you are using Direct Charge, then you should initialize Stripe.js with the connected account ID.

tulip harbor
#

okay great thanks

floral ridgeBOT