#sarumilli
1 messages · Page 1 of 1 (latest)
Hello 👋
That is quite unusual
Can you share the code you're working with here?
var stripe = Stripe($("#summarypage-stripeApiKey").val());
stripe
.confirmCardPayment($('#summarypage-clientSecret').val() ,{return_url:'https://localhost:9002/checkout/stripe3dsecure/response'})
.then(function(result) {
alert(result) });
}
are you seeing any other requests to the same URL that might've succeeded?
if you look at the referrer this request seems to come from hooks.stripe.com vs the actual one should've been made by Stripe.js
Do you have a URL to a public test page that you can DM me that I can check this out on?
Currently still in implementation phase.This is currently in local only
Gotcha. So these payments are succeeding but no redirect is happening at all?
Are there any errors in the developer console?
Or is your code throwing/catching any other exceptions here?
no .payment is successfull but it is not redirecting
I can see the alert statement as well.
Alert statement?
In this u can see the alert
return_url
string
If you are handling next actions yourself, pass in a return_url. If the subsequent action is redirect_to_url, this URL will be used on the return path for the redirect.
what is redirect_to_url?
The URL that your page should be sent to once the payment is complete.
Oh you are using confirmCardPayment, I don't think our Card element supports a return URL
Checking in to that
Oh never mind I see that it is. https://stripe.com/docs/js/payment_intents/confirm_card_payment#stripe_confirm_card_payment-data-return_url
I don't think that that URL is relevant for most confirmations here, you may have to redirect the page itself if you want it to redirect.
Do you currently have code on your page for handling a next action if it is required?
yaa next action is I need to redirct this url to confirmOrder page
depends up on response
ok is HandleCartAction will support return URL?
HandleCartAction isn't a Stripe function so I am unsure what it may do here.
So that return_url is for scenarios where a user has to be redirect to Stripe or their bank temporarily, when the user is done with that, they will be redirected to your URL
For successful payments, you will need to redirect yourself with a standard redirect
when we will have this scenario?
I meant handleCardAction
Checking in to this. I think it will be for certain banks' 3DS requirements
Yeah this should just be for 3DS. https://stripe.com/docs/payments/3d-secure#manual-redirect
confirmCardPayment will handle all 3Dsecure or we have any limitations
If you don't pass handleActions=false, that confirmCardPayment call should handle next actions and display 3DS as appropriate
I am just passing clientScreat only..
So you shouldn't get a full page redirect here. Have you tested with one of our 3DS test cards yet?
yes. We are getting the popup.
If we want to a full page redirect what change I have to do
Here you will want to pass your return URL and handleActions: false to your confirmCardPayment call https://stripe.com/docs/js/payment_intents/confirm_card_payment#stripe_confirm_card_payment-options-handleActions
Then when the payment is confirmed, if 3DS is required, the payment intent will have a next_action of redirect_to_url and a URL to redirect to with your js code
Thanks