#Namrata - 3ds

1 messages · Page 1 of 1 (latest)

fallow path
#

Hi there. One moment

covert mulch
#

Means

fallow path
#

Is this your own pay button? Couldn't you disable it with javascript and also prevent payment on back-end?

covert mulch
#

Yes this is my own pay button

fallow path
#

Yeah then you can disable it

covert mulch
#

I am checking response.paymentIntent.status is success then disable this pay button but it is not working

fallow path
#

What isn't working?

covert mulch
#

Button disable

fallow path
#

That's not a stripe question that's a javascript question so not sure how much we can help you here

covert mulch
#

Once we close the 3DS payment modal can we immediately hide payment form screen

fallow path
#

What do you mean by "payment form screen"

#

You want a redirect?

covert mulch
#

Yes i am redirecting using ajax call

fallow path
#

Ok

#

So what's your question, sorry I don't understand

covert mulch
#

I am having my payment screen in that I am using card-element then when user click on pay button then 3DS modal is showing then user click Authenticate button user get authentic then immediately I want to close my payment screen and using ajax call redirect to success fuction

#

Before this ajax cal it is showing payment screen for 1,3 senconds

fallow path
#

what stripe.js call are you using to confirm the payment?

#

Are you using server side confirmation or client side

#

If client side, there should be a redirect url you can pass, but sounds like you may be doing server side confirmation

#

You should just be able to use javascript to hide the payment form or display some loading indicator to let the user know what's happening

#

How to handle this is up to you

covert mulch
#

I am using confirmCardPayment

fallow path
#

Ok

#

Anyway, how to hide the payment form or what message to display is up to you