This is a small Sinatra app that demonstrates how to use Chargify Direct for Signups. It leverages the new Chargify2 gem to create the Direct secure form inputs and signature, verify the redirect response, and fetch the call response.
Your current Ruby version should meet or exceed the version specified in .ruby-version.
bundle install
config/config.example.yml
to config/config.yml
config/config.yml
to add your own API User credentialsbundle exec rackup
and play at http://localhost:9292