Stripe plugin: subscription still incomplete in database
I setup better auth stripe plugin but on successful payment and receiving the webhook the subscription entry in the database keeps having the status incomplete and not updating subscriptionId and startDate.
I am using referenceId if the organization (id).
7 Replies
can u share ur auth config
@1MS1 I'm running into the same issue currently. The webhooks are getting received, but it's not updating the subscription record in the DB. Have you found a solution yet?
Same here!
I've experienced a similar issue: https://discord.com/channels/1288403910284935179/1396882868751564881
How does your plan look like ? Is it only lookup keys or do you also have a priceId ?
After diving into the code, I found a bug where the stripe plugin currently does not work with the lookup keys: https://github.com/better-auth/better-auth/issues/3537
GitHub
[BUG]: Stripe plugin does not handle lookupKey and annualDiscountLo...
Is this suited for github? Yes, this is suited for github To Reproduce Create a plan without priceId and pass it to the Stripe Plugin options: ex: plans = [ { name: "basic", lookupKey: &q...
After including the priceId, it seems to work
decided to implement it on my own until the plugin supports organizations fully
so i made a webhook endpoint on my own and built the logic