#jaybedubbz - Setup Intent
1 messages ยท Page 1 of 1 (latest)
it seemed to decline because authentication was required before we could require authentication
when the setupintent is attempted to be confirmed by the card holder it's declined because authentication is required
before we could require authentication
How were you collecting payment method details?
one time token passed from stripe elements in the creation of the setupintent
so basically once handleCardSetup is called a few seconds later i see in the setupintent logs that the setupintent has failed due to the error i pasted above
Do you have a request ID?
req_19EmWZUl7K4eZF
the setupintent is created server side with the token received via elements.. is that OK? or should it be created by elements /client side so the creation happens from the same IP as the confirmation? ๐ค
Yeah that's your problem
When you are creating/confirming the Setup Intent it is saying you need to bring the Customer on-session to verify with their bank
i always have to create the setupintent client side ? it won't always work if created server side ?
this is because some banks require the IP during creation & confirmation to be the same/similiar ?
You should be creating the Setup Intent first server side, then using it to instantiate a Payment Element which will handle collecting payment method details. confirming the Setup Intent, and additional auth requirements
at the moment i'm using stripe elements to collection the token
for the payment method (credit/debit card)
Right but that's doing it backwards which doesn't allow Stripe Elements to handle the bank's request for authentication
i should use stripe elements to attach the token to the setupintent ?
No
You would want to follow the approach we outline here: https://stripe.com/docs/payments/save-and-reuse
thanks seems like i need to move some stuff around ๐
๐ stepping in here as Snufkin had to step away.