An example Stripe implementation which I wrote more about here: Stripe: Beyond the "Getting Started" Docs.
$ bundle exec install
gem install mailcatcher
$ cp .env.example .env
- Edit that file with your own stripe config and ngrok subdomain
$ bundle exec rails db:create db:migrate
$ ngrok http -subdomain=whatever_you_put_in_env_file 3000
$ mailcatcher -f
$ bundle exec rails server
$ bundle exec install
$ bundle exec rails db:create db:migrate
$ bundle exec rails test ; bundle exec rails test:system
You'd have to augment this example. It's only setup to work with having a single plan at the moment, because that's all I needed.
Idk, I just felt iffy about committing credentials publicly -- even encrypted, test-only ones 🤷♂️
This example is pulled from a project I'm working on called Skilltree, so I just picked a random type of tree 🌳