Stripe Update Card microservice

Expose a static page that let a customer update its credit card information on Stripe.

Travis codecov Cargo version Crates.io Crates.io Docker Build Status MicroBadger Size

Configuration

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

🐳 Docker container

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.

⛴ Cargo install

bash cargo install stripe-update-card

🤓 Quick start

Launch it, and enjoy!

```bash

load configurations (environment variables)

cp .env.dist .env source .env

start server

stripe-update-card &

open payment update page

open http://localhost:8080/{customer_id} ```

⚙️ Deployment

❤️ Shameless plug

🦄 You love it? Donate :)

Patreon donate button Gratipay donate button Flattr donate button PayPal donate button Bitcoin donate button

Development

``` cargo install cargo-watch cargo install cargo-release

source .env

watch for changes and restart everytime

RUST_LOG=debug cargo watch -x run ```

CI

This project use Travis-CI to run tests & do builds.

Required environment variables are: