stripe-samples / firebase-subscription-payments

Example web client for the `firestore-stripe-subscriptions` Firebase Extension using Stripe Checkout and the Stripe Customer Portal.
https://stripe-subs-ext.web.app/
MIT License
289 stars 78 forks source link

yet another basic issue starting demo #40

Closed nkenobi closed 3 years ago

nkenobi commented 3 years ago

An error occured: One or more provided prices do not have a tax_behavior set which is required for automatic tax computation.

It is not good that a zillion dollar company like Stripe does not bother to provide a working demo, let alone good tech stack options (like a de facto standard Node backend with a de facto standard DB such as Postgres or Mysql, or Docker or AWS). The issue I opened with customer portal is not addressed (not even responded to) even after several months now. https://github.com/stripe-samples/developer-office-hours/issues/110

cjavilla-stripe commented 3 years ago

When automatically calculating taxes, the underlying price needs to have the tax behavior set to inclusive or exclusive. This demo assumes the Prices you're using have that tax behavior setup: https://github.com/stripe-samples/firebase-subscription-payments/blob/24d5267b46901e36149c4ddecd6dbffa331fdc46/public/javascript/app.js#L169.

Here's a video showing a couple options for fixing that error: https://www.youtube.com/watch?v=KfaqrxEO8Y4