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
nikatune
nikatune3mo ago
can u share ur auth config
Michael Maust
Michael Maust2mo ago
@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?
nowy
nowy2mo ago
Same here!
__maxom__
__maxom__2mo ago
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 ?
__maxom__
__maxom__2mo ago
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...
__maxom__
__maxom__2mo ago
After including the priceId, it seems to work
1MS1
1MS1OP3w ago
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

Did you find this page helpful?