Open EmilioNicolas opened 1 year ago
I am not sure if this notices may have something to do with the problem:
⚠ Function 'createPortalLink is missing a trigger in extension.yaml. Please add one, as triggers defined in code are ignored.
⚠ Function 'handleWebhookEvents is missing a trigger in extension.yaml. Please add one, as triggers defined in code are ignored.```
I have still the problem, I don't know why createCheckoutSession is not being called 🤷♂️ https://github.com/invertase/stripe-firebase-extensions/blob/504145e63fe928123ce7d87f36bf9a6d1de091e4/firestore-stripe-payments/functions/src/index.ts#L109
Is it possible this extension doesn't work properly with stripe buttons/links or pricing tables and I must use Firebase JS Stripe extension SDK https://github.com/invertase/stripe-firebase-extensions/blob/next/firestore-stripe-web-sdk/README.md to create checkout sessions programmatically?
Hi @EmilioNicolas
This extension does not automatically sync users, have you updated the extension configuration to automatically sync users with Stripe?
I've also been seeing this happen a lot recently, thought not 100% of the time, and do have SYNC_USERS_ON_CREATE set to Sync
Is it possible this is to do with out of order stripe events, like User subscription update coming after User create?
I have the exact same issue. When a user registeres in my app, a stripeID and stripe customerID and metadata firebase ID is created in Stripe dashboard. But when later the user subscribes through my stripe product, a completly new customer is created with a new customerID and no firebaseUID, and my Firestore does not update the subscribers collection. I cant find help anywhere. I think my heckout integration is not connected with the Firestore. But customer cus_Phmg0DMe36adb6 was created via API integration with Firestore at start, this is so confusing...
@Andre1992 have you checked whether your SYNC_USERS_ON_CREATE is on? For me this was causing a race condition and when i disabled it started working again.
@spookyuser That is actually a good suggestion, I had it on sync. I changed to Do not sync, let me try.
Did not work... I made a new issue: https://github.com/firebase/extensions/issues/1984
Bug report
firestore-stripe-payments
Describe the bug
After configuring the extension and products and price are sync in my Firebase local emulator, customers are not being created when checking out a subscription or a payment link. They are created if I configure the sync between Authentication and Customers. However that's not what I want to achive, I want customers only be created when checking out if they don't exist yet.
Here you can see my functions log register.
To Reproduce
Configure the extension in localhost with stripe test mode, no async Auth-Customers. Create products and payment link. Checkout and see errors in functions "User not found!"
Expected behavior
I expect a customer is created in my Firebase if it doesn't exist yet each time a checkout or a subscription is procceed. I am sure I am missing something obvious but I cannot see it. 😔
System information