storacha-network / w3infra

🏗️ Infra for the w3up UCAN protocol implementation
Other
15 stars 5 forks source link

feat: update Stripe plan in `PlansStorage#set` #320

Closed travis closed 7 months ago

travis commented 7 months ago

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.

seed-deploy[bot] commented 7 months ago
View stack outputs - **pr320-w3infra-BillingDbStack** Name | Value -- | -- customerTableName | pr320-w3infra-customer spaceDiffTableName | pr320-w3infra-space-diff spaceSnapshotTableName | pr320-w3infra-space-snapshot usageTable | pr320-w3infra-usage - **pr320-w3infra-BillingStack** Name | Value -- | -- ApiEndpoint | https://a77htywfek.execute-api.us-east-2.amazonaws.com billingCronHandlerURL | https://yuhwo5xyir7hvzj2gosrxbqufe0pqmmj.lambda-url.us-east-2.on.aws/ CustomDomain | https://pr320.billing.web3.storage - **pr320-w3infra-CarparkStack** Name | Value -- | -- BucketName | carpark-pr320-0 Region | us-east-2 - **pr320-w3infra-RoundaboutStack** Name | Value -- | -- ApiEndpoint | https://g4myzls191.execute-api.us-east-2.amazonaws.com CustomDomain | https://pr320.roundabout.web3.storage - **pr320-w3infra-SatnavStack** Name | Value -- | -- BucketName | satnav-pr320-0 Region | us-east-2 - **pr320-w3infra-UploadApiStack** Name | Value -- | -- ApiEndpoint | https://m8byiv6969.execute-api.us-east-2.amazonaws.com CustomDomain | https://pr320.up.web3.storage - **pr320-w3infra-BusStack** - **pr320-w3infra-FilecoinStack** - **pr320-w3infra-ReplicatorStack** - **pr320-w3infra-UcanFirehoseStack** - **pr320-w3infra-UcanInvocationStack** - **pr320-w3infra-UploadDbStack**
travis commented 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

travis commented 7 months ago

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!