ducky/subscriptions

Paddy 2015-07-13 Parent:fe8f092cc149

7:9e138933e4ce Go to Latest

ducky/subscriptions/subscriptionsd/wrapper.sh

Create a client for working with subscriptions. We mostly copied our code.secondbit.org/auth.hg/client package to create a simple client library for communicating with our Subscriptions API. Right now, the client only has support for creating a subscription. It remains untested, but it builds.

History
1 #!/bin/sh
3 STRIPE_KEY_FILE=${STRIPE_KEY_FILE:-/private/kubernetes/stripe/privatekey}
4 STRIPE_KEY=`cat ${STRIPE_KEY_FILE}`
6 echo $STRIPE_KEY
8 SUBSCRIPTIONS_PG_DB_FILE=${SUBSCRIPTIONS_PG_DB_FILE:-/private/kubernetes/subscriptions/dsn}
9 SUBSCRIPTIONS_PG_DB=`cat ${SUBSCRIPTIONS_PG_DB_FILE}`
11 STRIPE_KEY="$STRIPE_KEY" SUBSCRIPTIONS_PG_DB="$SUBSCRIPTIONS_PG_DB" /subscriptions/subscriptionsd