#alphakr_
1 messages · Page 1 of 1 (latest)
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.
- alphakr_, 1 day ago, 15 messages
- alphakr_-account-support, 3 days ago, 2 messages
Hello! Which specific Events are you trying to test?
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
Are you talking about 3D Secure or something else?
mmm yes something like that
And you're trying to test the scenario where authentication is required for an off-session payment?
The easiest way to test for that is to update your Customer with the test card ending in 0341 at the end of this section: https://stripe.com/docs/testing#declined-payments
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.
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?
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.
ok ok so is it better display errors after recieved them in the webhook not depending on the api sync responses?
Not sure I understand. Display them where? In what scenario?
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
Display them where though?
Typically webhooks are not involved in any customer-facing UI or anything like that.
notification
no a notification in the website that's why we're using websokets
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.
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
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?
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?
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.