#.shimri
1 messages · Page 1 of 1 (latest)
Hi there!
How do users "upgrade to another tier"? Are you using the Subscription update endpoint?
You could do a pending update, to only update the susbcription if the payment succeeds: https://stripe.com/docs/billing/subscriptions/pending-updates
right now if the user experiences a payment failed issue im switching his status to 'payment-failed-
sorry, im using the Deep Link option
do i have the same abilities like what you sent to me?
So you are not using the Subscription update endpoint. Instead you are using the customer portal?
Can you share a Subscription ID (sub_xxx) where a payment failed?
Yes that's the customer portal.
And also can you clarify what you mean by "how should i check if that user already paid for another subscriprion"?
i thought it would create a new sub for an update
but now i understand that it will update the existing subscription
but now i understand that it will update the existing subscription
That's correct
the user doesnt have a sub id
becase he cancelled his sub
this is the customer id: cus_OEjAwdh35aWeUD
can i achieve 'pending update' via customer portal?
I don't think so.
So can you clarify what is the issue exactly? A user upgraded their subscription with the customer portal, but their payment failed?
And you don't have the subscription ID?
A user has successfully subscribed to tier 1, after some time he decides to upgrade his tier to tier 2. But the payment failed.
but his previous subscription is still ok.
I need more information to be able to help. Can you share the subscription ID, or failed payment ID?
in this case invoice.payment_failed webhook is fired
And I still don't understand what you mean by "but his previous subscription is still ok".
sub id: sub_1NSGEtLvRCh3IIiBYvzlOrTo
I apologize, the user is trying to upgrade his subscription, but when the user enters an invalid credit card, the invoice.payment_failed webhook fires, and I am preventing the user from using my app. Despite having a valid subscription.
How to create a new invoice only after Stripe successfully charges the user for preventing false alarms (invoice.payment_failed webhook)?
Hey! Taking over for my colleague. Let me catch up.
How to create a new invoice only after Stripe successfully charges the user for preventing false alarms (invoice.payment_failed webhook)?
Nope you can't avoid this.
What you mean by false alarm first ? can you share an event that is considered as a "false alarm" ?
if user already has a valid subscription and failed to upgrade his subscription Stripe will fire the invoice.payment_failed webhook despite his validate subscription
But there were a failure when upgrading the Subscription. That's why the invoice.payment_failed was triggered
So it isn't a false alarm
In your integration, you need to keep your customer using your services until the end of the current period and don't consider that the Subscription is no more active.