#Manu Mora-setup-intent-action

1 messages · Page 1 of 1 (latest)

sand crow
#

Hey, can you share the ID of the object? seti_xxx

#

Can you share the link to the documentation where you found that?

timid raven
sand crow
#

You can then pass the client_secret from your Setup Intent and it'll handle the 3DS/auth flow and create the Payment Method

timid raven
#

I have attached the payment method to the SetupIntent. So, would it be necessary again to add a payment_method to stripe.confirmCardSetup?

sand crow
#

Not if the payment_method field on the Setup Intent already has a value, no

#

But in most cases you wouldn't already have a Payment Method object if you're using Setup Intents

timid raven
#

yeah!! it has worked

#

{setupIntent: {…}}
setupIntent:
cancellation_reason: null
client_secret: "seti_1KGjQc2F7kRZC0uMrGOEs5As_secret_Kwcf3WIFESkQvSErUCeEnvxIyPQK6xS"
created: 1641903978
description: null
id: "seti_1KGjQc2F7kRZC0uMrGOEs5As"
last_setup_error: null
livemode: false
next_action: null
object: "setup_intent"
payment_method: "pm_1KGjQb2F7kRZC0uMRMqTZp98"
payment_method_types: ['card']
status: "succeeded"
usage: "off_session"
[[Prototype]]: Object

#

and now? to make a payment in the future?

#

using that SetupIntent client secret?