#jaybedubbz - Setup Intent

1 messages ยท Page 1 of 1 (latest)

scarlet widget
#

HI ๐Ÿ‘‹

#

So what's the question?

dapper kiln
#

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

scarlet widget
#

before we could require authentication
How were you collecting payment method details?

dapper kiln
#

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

scarlet widget
#

Do you have a request ID?

dapper kiln
#

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? ๐Ÿค”

scarlet widget
#

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

dapper kiln
#

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 ?

scarlet widget
#

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

dapper kiln
#

at the moment i'm using stripe elements to collection the token

#

for the payment method (credit/debit card)

scarlet widget
#

Right but that's doing it backwards which doesn't allow Stripe Elements to handle the bank's request for authentication

dapper kiln
#

i should use stripe elements to attach the token to the setupintent ?

scarlet widget
#

No

dapper kiln
#

thanks seems like i need to move some stuff around ๐Ÿ™‚

livid heart
#

๐Ÿ‘‹ stepping in here as Snufkin had to step away.