#cnguyen

1 messages · Page 1 of 1 (latest)

drifting scaffoldBOT
twin kindle
glossy crane
#

ok so there is no param in the code to force it ?

#

like in the pi

#

for now, my params are :
payment_method_types: ['card'],
usage: 'off_session',
customer: stripeCustomer.id,
metadata: additionalMeta,

#

??

twin kindle
#

Sorry I have multiple people I'm chatting with so you'll need to be patient

glossy crane
#

Sorry I didn't know. Thank you.

twin kindle
#

No problem

glossy crane
#

And an other question, I listen the webhook setupintent.succeeded but for now, the response is "{
"message": "Missing Authentication Token"
}"

twin kindle
#

The response your webhook endpoint returns is that?

glossy crane
#

yes

twin kindle
#

Have you added some error handling/logging to narrow down which line of code is throwing that error? That would be next step

glossy crane
#

Or maybe it's not a stripe message

twin kindle
#

Yeah recommend you narrow down the line of code where it's happening

glossy crane
#

ok ty

dusk jay
#

Just a heads up @glossy crane that while you can specify request_three_d_secure: any to request 3DS on all auths, this is still a request -- ultimately the bank decides whether to require 3DS or not (whether or not you've asked for it).

glossy crane
#

Thank you, I create the setupintent in this way in the back (await stripe.setupIntents.create(params);) :
let params = {
payment_method_types: ['card'],
usage: 'off_session',
customer: stripeCustomer.id,
metadata: additionalMeta,
payment_method_options: {
card: {
request_three_d_secure: 'any'
}
},
};

dusk jay
#

If you need to know for sure if 3DS was leveraged, then you can inspect this after the auth either in custom Radar rules or in the payment method details of the setup attempt:
https://stripe.com/docs/api/setup_attempts/object#setup_attempt_object-payment_method_details-card-three_d_secure-result

glossy crane
#

ty

#

All good