#blackbirdgunner
1 messages · Page 1 of 1 (latest)
in_1NlRpmSAw4DIVBDnK8lRG8eu
it might show as paid since I manually charged it later from dashboard
yes no worries
you need to look at the PaymentIntent object when you receive the invoice.payment_failed in order to understand more why the payment failed
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
this has basically fired as well as this one https://dashboard.stripe.com/test/events/evt_1NlRpnSAw4DIVBDnSxgTc0H0
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
which both say that the PI requires_action
notably 3DS
so it will also work if I access the PaymentIntent object by using the "latest_invoice" value from the subscription modify api response (https://stripe.com/docs/api/subscriptions/update), right?
yes
just to be sure, this is what I should be using to take further actions?
any suggestions on how to handle this from server side? So basically we have Django backend and React frontend. When a user wants to upgrade their plan, we call an api on the server which uses stripe.Subscription.modify() to change the plan.
if a PI requires an action, this means that you need to bring the customer back on session to authenticate the payment
there's no workaround
So after stripe.Subscription.modify() I check the invoice status and if it's still open I send back some response to client side (like a condition) using which I run https://stripe.com/docs/js/payment_intents/handle_next_action
is this approach correct?
Ideally I think I should using invoice.payment_action_required to trigger this, but at the moment I have no way of sending message to client side from webhook code.
Hi! I'm taking over this thread.