#zubei-3ds

1 messages ยท Page 1 of 1 (latest)

tulip cedar
#

@last widget hi! What documentation are you following exactly? (we don't actually have an official Angular support, I'm not familiar with this message-listening code you're using)

last widget
#

and change codes into angular style like:
@HostListener('window:message', ['$event']) onPostMessage(event) {

console.log("******", event)

if (event.data === '3DS-authentication-complete') {

  // here your code
  this.on3DSComplete();
  this.router.navigate(['patients/success']);

}    }

}

#

instead of "window.addEventListener('message', function(ev) {
if (ev.data === '3DS-authentication-complete') {
on3DSComplete();
}
}"

#

@tulip cedar hi could you please help me? ๐Ÿ˜… its a bit urgent, last 7 days i tried to handle this.

tulip cedar
#

oh ok so you create your own iframe

#

to clarify is this happening in live mode or test mode?

last widget
#

still in test mode

#

but soon we ll use in live mode

tulip cedar
#

as far as I know you should just ignore that event really, it's internal to stripe.js

#

to clarify, it's your code that emits the 3DS-authentication-complete event(you write code on the page that is used as the return_url to create that event

last widget
#

but otherwise payment cant be completed. i cant get 3d payments from customers?

#

if (ev.data === 'stripe-3ds-fallback') {
on3DSComplete();
}
if i use this syntax payment success also

#

but the most important part is 3d 2 authentication. because it never returns a result but payments are successful?

#

@tulip cedar i really stuck in this, and dont know what to do?

tulip cedar
#

well you should use webhooks to be notified of successful payments overall

#

because the customer might never even visit the return URL, if their browser closes ,etc

last widget
#

yes i did it, but it returns nothing for 3d 2 payments. other payment methods returns paymentIntent

tulip cedar
#

do you mean there was no URL returned to redirect to? Or something else?

#

not sure what "it" is in your sentence

last widget
#

yes there is no URL returned to redirect to. but only in 3d 2 payments.

tulip cedar
#

cool _ and you probably are looking inside use_stripe_sdk to find the URL right?

#

that's wrong โ€” you need to pass return_url when confirming the PaymentIntent so a URL is always returned