-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sendInvoice dont' use existing customer #223
Comments
Hi @waste-app. Can you confirm which retrieval method you are using, for example is it a Additionally, do you haver an active firebase user which represents the provided uid/email? |
in any case: uid or email. |
I have the same issue: I create customers in Stripe based on my users in Firebase so that all the properties like name, address, VAT number and so on are properly set. The one thing I can't seem to be able to do is to set the currency of the customer when I create it. So by default it is left undefined. And when I create an invoice for the Firebase extension to pick up, I only set its email address because I don't want to use the email address associated to the Firebase auth account, but one that is specific to invoicing. So no uid in my invoice, only an email address that is the same as the Stripe customer I already created with the API beforehand. But since the extension searches for existing users based on email address AND currency, and the currency of my existing customer is undefined instead of 'eur' (the currency of the first item of my invoice), then it creates a new one. Why this limitation in the extension? Why not use only the email? Or even better, why not let us specify the customer id altogether, to remove any ambiguity? |
@sarbogast I agree, using just the customer id or the email would be great. I discovered this issue when invoicing customers through my new ticketing system that utilizes this extension. For now, I guess as a workaround I will just set the customer's currency manually in the stripe dashboard before invoicing them. |
I had so many customization issues like that that I ended up copying the code into my own Cloud Functions, uninstalling the extension, and customizing what I needed. |
Bug report
Send Invoices using Stripe
Describe the bug
customer infos cannot be retrieved
// Use the existing customer
is out of code coverageTo Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
create a new invoice on existing user
Expected behavior
load all billing information on existing user e.g VAT NUMBER
Additional context
stripe/[email protected]
The text was updated successfully, but these errors were encountered: