#George Farhat

1 messages · Page 1 of 1 (latest)

idle elkBOT
idle furnace
#

It means that 3DS is redirect type which you can display in browser yourself. There is stripe sdk type too which can only be displayed by our client-side SDKs (stripe.js/iOS or Android / RN SDK)

cold star
#

so I am using client to create the payment method before i create payment intent

#

after i get the method, i create the intent and get the requires auth response

#

now i want to handle this via the server

#

and provider the url to the client without using stripe

#

so i want to extract the url from the response and send it to the client

#

on the stripe types, use_stripe_sdk is an empty object

#

what do you recommend i do?

idle furnace
#

It's explained here

#

It's your choice, you can extract the URL and pass back to client to display like this Doc

#

or you can simply pass back the Id to client side and use confirmCardPayment or handleCardAction from stripe.js to let it automatically handle for you

cold star
#

it doesnt mention anything about use_stripe_sdk

#

whats the different between the two?

#

they both have a url that the customer needs to open right?

idle furnace
#

No use_stripe_sdk will be a different type, and yes it's different, it will require to use the SDK to handle, hence the name is use_stripe_sdk

#

Normally if you don't pass return_url it will be use_stripe_sdk, if you pass return_url it will be redirect_to_url

cold star
#

i used the url from the use_stripe_sdk object and it loads fine on the browser

#

oh i see

#

i have to pass it in the intent

idle furnace
#

The default flow is not_passing return_url and use Stripe.js to handle use_stripe_sdk. You are using the alternative flow and there is nothing wrong with it

cold star
#

ok i see

#

so if i pass return_url to the intenet , then the response wiill have redirect_to_url

idle furnace
#

yeah

cold star
#

perfect

#

thank you!

#

one lsat thing

#

when an intent is in requires auth status, can you update the intent and choose a different payment method?

#

or is it "locked"

idle furnace
#

on requires_action not sure

#

(You can easily test it in Test mode)

cold star
#

sound good 👍

idle furnace
#

Just tested it and answer is yes