Hey #Laravel spark devs out there (or anyone using Stripe probably). How do you configure your subscription products for dev/test vs live? I create product/price combos in test mode in stripe and copy them to production, but they have different ids.

This means the app needs to handle two different sets of ids depending on the environment, so I am just doing this in my Spark service provider:

Show thread

I'm storing IDs in a config system (e.g. env variables) and each stage can have different set of variables – speaking from a Symfony/Drupal perspective, not Laravel, but the idea should be the same

Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!