#.shimri

1 messages · Page 1 of 1 (latest)

velvet spindleBOT
fathom yarrow
#

Hi there!

#

How do users "upgrade to another tier"? Are you using the Subscription update endpoint?

lethal kindle
#

yes

#

but im listening to invoice.payment_failed webhook

fathom yarrow
lethal kindle
#

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?

fathom yarrow
#

So you are not using the Subscription update endpoint. Instead you are using the customer portal?

lethal kindle
fathom yarrow
#

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"?

lethal kindle
#

i thought it would create a new sub for an update

#

but now i understand that it will update the existing subscription

fathom yarrow
#

but now i understand that it will update the existing subscription
That's correct

lethal kindle
#

the user doesnt have a sub id

#

becase he cancelled his sub

#

this is the customer id: cus_OEjAwdh35aWeUD

lethal kindle
fathom yarrow
#

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?

lethal kindle
#

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.

fathom yarrow
#

I need more information to be able to help. Can you share the subscription ID, or failed payment ID?

lethal kindle
#

in this case invoice.payment_failed webhook is fired

fathom yarrow
#

And I still don't understand what you mean by "but his previous subscription is still ok".

lethal kindle
#

sub id: sub_1NSGEtLvRCh3IIiBYvzlOrTo

lethal kindle
molten zephyr
#

Hey! Taking over for my colleague. Let me catch up.

molten zephyr
#

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.

lethal kindle
#

:\

#

what do you suggest to do?

molten zephyr
#

What you mean by false alarm first ? can you share an event that is considered as a "false alarm" ?

lethal kindle
#

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

molten zephyr
#

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.