Skip to content
Snippets Groups Projects
Commit 131f4e43 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Add the setup helper tools

parent ef2b6ed6
No related branches found
No related tags found
2 merge requests!369update production,!368Support the new Stripe payment workflow
#!/usr/bin/env bash
set -euo pipefail
KEY=$1
shift
curl https://api.stripe.com/v1/products \
-u "${KEY}:" \
-d "name=30 GiB-months" \
-d "description=30 GiB-months of Private.Storage storage × time" \
-d "default_price_data[currency]=USD" \
-d "default_price_data[unit_amount]=650" \
-d "default_price_data[tax_behavior]=exclusive" \
-d "statement_descriptor=PRIVATE STORAGE" \
-d "url=https://private.storage/"
#!/usr/bin/env bash
set -euo pipefail
KEY=$1
shift
DOMAIN=$1
shift
curl \
https://api.stripe.com/v1/webhook_endpoints \
-u "${KEY}:" \
-d url="https://payments.${DOMAIN}/v1/stripe/webhook" \
-d "enabled_events[]"="checkout.session.completed"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment