Stripe Update Card microservice

Expose a page that let your customers update their payment information on Stripe.

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

🐳 Getting started

```bash docker run -it \ -e STRIPEPUBLISHABLEKEY=pktestxxx \ -e STRIPESECRETKEY=sktestxxx \ -e SUCCESSREDIRECTURL=https://url.to.redirect/on/success \ -p 8080:8080 \ fgribreau/stripe-update-card

open payment update page for customer id: cus_D1Cj3rjHrjPQg5

open http://localhost:8080/cus_XXXXXXXXXXXX ```

Don't forget to change cus_XXXXXXXXXXXX with the Stripe customer id and then expose the URL http://sub.domain.tld/cus_XXXXXXXXXXXX from your app.

Configuration

Configuration is managed through environment variables, see .env.dist for the full-list.

```bash

mandatory config

STRIPEPUBLISHABLEKEY=pktestxxxxxxxx STRIPESECRETKEY=sktestxxxx SUCCESSREDIRECTURL=https://url.to.redirect/on/success

optional config

PAGETITLE="Update Card" FORMDATAIMAGE=/path/to/your/logo.png FORMDATANAME="The name of your company or website" FORMDATADESCRIPTION="A description of the product or service being purchased" FORMDATAPANELLABEL="Update Card Details" FORMDATACOLLECTBILLINGADDRESS=false FORMDATALABEL="Update Card Details" FORMDATAALLOWREMEMBERME=false FORMDATALOCALE=auto ```

See stripe-update-card on docker hub.

Running in production at

🦄 Do you use it in production? Please support my work :)

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

⛴ Cargo install

bash cargo install stripe-update-card

⚙️ Deployment

❤️ Shameless plug

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: