#flickcall

1 messages · Page 1 of 1 (latest)

cyan cedarBOT
rain horizon
#

hello, we can continue on a new thread. What's your question?

cyan sky
#

but based on documentation, it looks like i won't get response before attempting for 3d secure popup
"Use stripe.confirmPayment to confirm a PaymentIntent using data collected by the Payment Element, or with manually provided data via confirmParams. When called, stripe.confirmPayment will attempt to complete any required actions, such as authenticating your user by displaying a 3DS dialog or redirecting them to a bank authorization page. Your user will be redirected to the return_url you pass once the confirmation is complete."

#

is there a parameter that will give me paymentintent response right before triggering 3d authentication so that i can open the bank site in new tab

rain horizon
cyan sky
#

thats what I did, but looks like that params is for stripe.confirmCardPayment not stripe.confirmPayment

#

shall I change my client side code from stripe.confirmPayment to stripe.confirmCardPayment? what I would be loosing out when using confirmcardpayment?

rain horizon
#

it should work with stripe.confirmPayment also, maybe test it out and let us know if you're running into any errors

cyan sky
#

and below is the screen right before that,

rain horizon
#

what's the PaymentIntent id?

cyan sky
#

I used $subscription->latest_invoice->payment_intent->client_secret from backend while creating subscription. That is used to create stripe.elements

#

you need actual value of id?

#

pi_3NJAwySDXvJyqJf607hqN7Us

#

and this is the code at backend to create subscription

cyan cedarBOT
toxic cypress
#

to be clear the question is how to get a next_action with redirect_to_url instead of use_stripe_sdk when using the Subscriptions API to create the PaymentIntent?

toxic cypress
# cyan sky

you should report this to us at https://support.stripe.com/?contact=true . We have a way to flag banks that have that problem(refusing to allow their page to be put in a frame) into behaviour where we automatically prompt to open the page in a new window instead

cyan sky
#

not sure about use_stripe_sdk but how yes - how to get next_action when using stripe.confirmPayment method on client side

toxic cypress
#

well the best option is to report it so we flag that bank into the fallback behaviour to address that one problem with that specific bank in live mode. It's really awkward to change your integration to be able to get the redirect_to_url action for Subscription payments like that, it kind of requires completely re designing things.

cyan sky
cyan sky
toxic cypress
#

if flagged it will look like this instead

toxic cypress
#

but again it requires completely changing your approach to attach the PM server-side and confirm server-side, so it's not really the right approach I think. You should try to escalate with our support team to get that specific bank to use the "open in new window" fallback we have.