#r0zator

1 messages · Page 1 of 1 (latest)

wind lichenBOT
half folio
#

Also, there is a status called "processing". Where is the status gonna be sent when the payment is succesfully processed? When is processing being sent?

graceful monolith
#

Hi there, you shouldn't reply on the query params on the URL to determine the setupIntent status. You should retrieve the setupIntent object and check its status, and/or listen to webhook events.

half folio
#

understood. So I should use the api and not rely on the url

graceful monolith
#

You are right.

half folio
#

ok, tell me more about processing pleas

#

when is this happening?

graceful monolith
half folio
#

ah ok, so for cards it's not happening. good. thanks

#

Question - should i rely on query parameters at least for the setup intent id, so I can fetch details of it from API? @graceful monolith

graceful monolith
half folio
#

and how I can retrieve the client_secret from api without waiting for the stripe elements to render and generate the secret?

#

because currently i am using stripe elements for adding a card payment, add it -> on redirect url I have the setup intent id -> get the setup intent from API on my backend side and check the status of it.

#

and i know that client secret is required only on client side - but I want to do everything on server side

graceful monolith
#

You should get the client_secret from the the response of SetupIntent creation.

half folio
#

ok, thanks