Skip to content

Commit

Permalink
chore: update .env.tpl to sensible defaults for local dev (#43)
Browse files Browse the repository at this point in the history
I think developers should default to using staging, since with the
addition of plan gating on the client and server they will otherwise
need to enter real credit card information to do basic development. In
staging they'll still need to go through the checkout flow, but can use
fake credit card information (ie 4242 4242 4242 4242 and others listed
at https://stripe.com/docs/testing?testing-method=card-numbers)

I've also updated to the "test mode" Stripe pricing table that redirects
to localhost:3000 - the previously specified pricing table redirects to
staging after checkout is complete
  • Loading branch information
travis authored Nov 15, 2023
1 parent ab4bdb9 commit 2865d06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .env.tpl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# set these to your upload API service URL and the DID your service is using as its service DID
NEXT_PUBLIC_W3UP_SERVICE_URL=https://up.web3.storage
NEXT_PUBLIC_W3UP_SERVICE_DID=did:web:web3.storage
NEXT_PUBLIC_W3UP_SERVICE_URL=https://staging.up.web3.storage
NEXT_PUBLIC_W3UP_SERVICE_DID=did:web:staging.web3.storage

# set these to values from Stripe settings
NEXT_PUBLIC_STRIPE_PRICING_TABLE_ID=prctbl_1NzhdvF6A5ufQX5vKNZuRhie
NEXT_PUBLIC_STRIPE_PRICING_TABLE_ID=prctbl_1OCeiEF6A5ufQX5vPFlWRkPm
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_51LO87hF6A5ufQX5viNsPTbuErzfavdrEFoBuaJJPfoIhzQXdOUdefwL70YewaXA32ZrSRbK4U4fqebC7SVtyeNcz00qmgNgueC

# set this to skip forcing users to pick a Stripe plan
Expand Down

0 comments on commit 2865d06

Please sign in to comment.