#devangbhuva-price-update

1 messages ยท Page 1 of 1 (latest)

umbral sequoia
#

Hey there, can you explain a bit more what you mean, or what you're trying to do?

modest cosmos
#

We are expecting when stripe price was updated last time from stripe dashboard?

umbral sequoia
modest cosmos
#

Yes.. using webhook, our use-case partialy completed! Let me explain our complete use-case

umbral sequoia
#

Sure ๐Ÿ™‚

modest cosmos
#

We are creating first price plan in our system & then in stripe for connected stripe accounts. Now suppose someone disconnect stripe account from our system. After that they change price plan in stripe. So we didn't receive any webhook for that. After some time user again connect same stripe account in our system. So we will sync our price plans with stripe. That time we want to build some logic to sync (don't create already created plans in stripe because maybe some of the plans we already have in stripe) So in that logic we need updated key to identify plan was not changed. if plan was changed in stripe, we want to create new plan in stripe as per our data

#

In short, We have our own price which linked with stripe plan (if account is connected). Now if user disconnect & re-connect account. Between that duration, we don't receive any webhooks. So on reconnect, we need to verify that our price is linked with correct stripe plan with same stripe data which we have in our system

#

So for verify both data (What we have stripe plan details in our system & latest stripe plan in stripe), easiest way is compare updated time.

#

@umbral sequoia hope you will get idea! ๐Ÿ˜ƒ

umbral sequoia
#

Taking a look

#

I see, that's a bit tricky

#

so one option you have is tracking whether you actually used the pricing before disconnection

#

because after a price is used, its core details cannot be changed

#

(interval, amount, etc)

modest cosmos
#

Yes price can not be changed only if there will be any active subscriptions

#

otherwise amount & interval are changeable fields

umbral sequoia
#

Unfortunately that's not possible today, but I'm sharing you feedback internally about this

#

If you can give me your account ID (acct_1234) I can associate that with the feedback so we can notify you if we work on this in future ๐Ÿ™‚

#

I would recommend you recreate the products/price, or otherwise checking all attribute still match will be necessary (eg using a retrieval + object diff comparison)

modest cosmos
#

Do you need our main company account id or my test account id?

modest cosmos
modest cosmos
umbral sequoia
umbral sequoia
#

Since as you say you wouldn't know if there were changes in between.

modest cosmos
#

Ok..

modest cosmos
umbral sequoia
#

Perhaps, but even in that case you options are:
1/ Check all attributes match your record
2/ Recreate the price upon connection as if it were the first time you connected

modest cosmos
#

@umbral sequoia my test account id: acct_1JKe5pSJ7IYQoBXU

umbral sequoia
#

thanks, adding to the feedback notes

modest cosmos
#

Any specific reason, not exposing updated only for price?

#

Thanks @umbral sequoia for taking our feedback!

umbral sequoia
#

Quite welcome, thanks for sharing. I agree updated would be very useful ๐Ÿ™‚ hopefully we can add this in future!

modest cosmos
#

Does stripe has any public dashboard where we can see upcoming releases for new features & feedback?

umbral sequoia