Small Sinatra example that demonstrates basic usage of the Payabli Ruby SDK for customer operations, payment method tokenization, and v2 Money In transactions.
- Ruby >= 3.3.0 (SDK requires 3.3+)
- Bundler
cd examples/sdk/ruby-sdk
cp .env.template .env
# Edit .env to add your PAYABLI_CLIENT_ID, PAYABLI_CLIENT_SECRET, and PAYABLI_ENTRY
bundle installbundle exec ruby app.rbThen open http://localhost:4567
- Create Customer
- List Customers
- Make Transaction using the v2
MoneyIn/getpaidendpoint
- If you get authorization errors, make sure the
PAYABLI_ENTRYvalue matches the entrypoint for yourPAYABLI_CLIENT_ID/PAYABLI_CLIENT_SECRET.