Expose a static page that let a customer update its credit card information on Stripe.
Configuration is managed through environment variables, see .env.dist for the full-list.
bash
STRIPE_PUBLISHABLE_KEY=pk_test_xxxxxxxx
STRIPE_SECRET_KEY=sk_test_xxxx
SUCCESS_REDIRECT_URL=https://url.to.redirect/on/success
PAGE_TITLE="Update Card"
FORM_DATA_IMAGE=/path/to/your/logo.png
FORM_DATA_NAME="The name of your company or website"
FORM_DATA_DESCRIPTION="A description of the product or service being purchased"
FORM_DATA_PANEL_LABEL="Update Card Details"
FORM_DATA_COLLECT_BILLING_ADDRESS=false
FORM_DATA_LABEL="Update Card Details"
FORM_DATA_ALLOW_REMEMBER_ME=false
FORM_DATA_LOCALE=auto
bash
docker run -it -e STRIPE_PUBLISHABLE_KEY=pk_test_xxx \
-e STRIPE_SECRET_KEY=sk_test_xxx \
-e SUCCESS_REDIRECT_URL=https://url.to.redirect/on/success \
fgribreau/stripe-update-card
See stripe-update-card on docker hub.
bash
cargo install stripe-update-card
Launch it, and enjoy!
```bash
cp .env.dist .env source .env
stripe-update-card &
open http://localhost:8080/{customer_id} ```
❤️ Shameless plug
``` cargo install cargo-watch cargo install cargo-release
source .env
RUST_LOG=debug cargo watch -x run ```
This project use Travis-CI to run tests & do builds.
Required environment variables are: