#alphakr_

1 messages · Page 1 of 1 (latest)

urban hingeBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

tropic mortar
#

Hello! Which specific Events are you trying to test?

fringe parcel
#

not especificly a event Im want to simulate the sition when the banks comuniates with the card owner to approve or deny a transaction I mean whan a transaction needs confirmation

#

because idk if show errors throught api response of stripe or using websokets and notify through webhook

tropic mortar
#

Are you talking about 3D Secure or something else?

fringe parcel
#

mmm yes something like that

tropic mortar
#

And you're trying to test the scenario where authentication is required for an off-session payment?

fringe parcel
#

yes

#

Im showing error using websockets

#

due to some responses are async

tropic mortar
#

That card can be attached to a Customer, but attempts to charge them will fail.

#

If 3D Secure is required for an off-session payment it will trigger a decline.

#

The decline code will be authentication_required, so the behavior of this test card won't be identical, but you should treat it like any other decline regardless.

fringe parcel
#

mmm ok if I use the invoicePaymentFailed event is there any human readable message to show to customers?

#

or depeding on the codes I set one?

tropic mortar
#

For off-session payments most people display their own custom message based on the info they get from the API.

#

The errors in the API aren't localized, for example, and not all of them are going to be suitable for your customers.

fringe parcel
#

ok ok so is it better display errors after recieved them in the webhook not depending on the api sync responses?

tropic mortar
#

Not sure I understand. Display them where? In what scenario?

fringe parcel
#

Well to make you undestand Im trying to build a solution that display errors from stripe after a payment intent using websokets but im using the api respnses to display them

tropic mortar
#

Display them where though?

#

Typically webhooks are not involved in any customer-facing UI or anything like that.

fringe parcel
#

notification

tropic mortar
#

They happen async.

#

Oh, like in an email?

fringe parcel
#

no a notification in the website that's why we're using websokets

tropic mortar
#

Let's back up a bit. Can you ask a more specific question with a detailed example?

#

I'm trying to understand what you're trying to do and what's stopping you, but I need more information.

fringe parcel
#

ok again After generates an invoice using the stripe sdk I use the api response to display the errors, But Im not sure if it woud be better display them using the webhooks listen invoice payment fail event

#

using websokets

#

that's basically

tropic mortar
#

You keep saying websockets... do you mean webhooks or websockets? If you do mean websockets, are you referring to your own websockets implementation on your end?

fringe parcel
#

yes Im referring to my own websockets implementation

#

my plan is after the webhoook responses show the failed or successful payments using websokets

#

does it make sense?

tropic mortar
#

Honestly I don't know. Maybe? I don't know anything about your payment flows, user flows, what your customer-facing UI looks like, or how your websockets implementation works. It sounds like it's worth giving it a try in test mode to see if it will work well for you or not.