#Kromolabs Developer
1 messages · Page 1 of 1 (latest)
Hi, here I am
sub_1MvdFhG1EiuzslYu4OZejCl8
this is one, but i have more
pi_3MvdFhG1EiuzslYu0S66P0Oz
this is the failed pi
Thanks! Give me a few minutes to look into this.
That payment needed 3DS. That's why it got invoice.payment_action_required and invoice.payment_failed. Then 3DS was completed and the invoice got paid.
Yes but it feels like that the payment failed arrived before the customer completed 3dsecure
This is covered here: https://stripe.com/docs/webhooks/best-practices#event-ordering
I need to check hotjar but it feels like that when i create the subscription a trial of payment starts automatically, even if I pass 'payment_behavior'=>'default_incomplete'
Not sure I understand your question. Here you created a new subscription with an existing payment method. And the status of the subscription was incomplete because the first payment required 3DS.
yes, I create a subscription with an existing method, but i don't want that stripe automatically try to pay it
What do you want to happen instead?
just create the subscription. Then I'm going to pay the payment intent manually via javascript frontend in order to show 3dsecure and avoid payment failed event
I think it's simpler to keep your current integration, and just ignore the payment failed event.
Ok yes, i understand. The problem is that each client that tries to pay a subscription receive a payment failed email notification (which is attached to that invoice.payment_failed event) before the payment succeeded notification. It's okay, i'm gonna check via hotjar if it's client issue that wrongs typing 3dsecure or if it is the system that automatically tries to charge that method even if 3dsecure is requested
Thanks for the support anyway, i'll reach you later if i can find more info about the failing of that payments
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!