Closed travis closed 7 months ago
I created this PR since the integration test env for https://github.com/web3-storage/w3infra/pull/318 seems to be broken - integration tests run fine here but consistently fail there
Most of these changes were approved here:
https://github.com/web3-storage/w3infra/pull/318#pullrequestreview-1845386213
I'm going to wait for one more review since there have been a few changes, but the bulk of this should be ready to go!
We'd like to let users change their plan directly from console or the CLI, which means we need to teach PlansStorage#set how to update Stripe.
I've introduced a new BillingProvider interface to start abstracting Stripe functionality and especially to make it easier to test systems that interact with Stripe. I have not done a thorough audit of the various ways we interact with Stripe, but I'd like to move toward having all Stripe interactions go through BillingProvider.