#zubei-3ds
1 messages ยท Page 1 of 1 (latest)
@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)
i know, actually i follow https://stripe.com/docs/payments/3d-secure#when-to-use-3d-secure documentation
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.
oh ok so you create your own iframe
to clarify is this happening in live mode or test mode?
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
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?
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
yes i did it, but it returns nothing for 3d 2 payments. other payment methods returns paymentIntent
do you mean there was no URL returned to redirect to? Or something else?
not sure what "it" is in your sentence
yes there is no URL returned to redirect to. but only in 3d 2 payments.