Expose a page that let your customers update their payment information on Stripe.
```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 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 is managed through environment variables, see .env.dist for the full-list.
```bash
STRIPEPUBLISHABLEKEY=pktestxxxxxxxx STRIPESECRETKEY=sktestxxxx SUCCESSREDIRECTURL=https://url.to.redirect/on/success
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.
bash
cargo install stripe-update-card
``` cargo install cargo-watch cargo install cargo-release
source .env
RUST_LOG=debug cargo watch -x run ```
4242 4242 4242 4242
and any date & CVVThis project use Travis-CI to run tests & do builds.
Required environment variables are: