Docs navigation

Tutorials

Quickstart

How-to guides

OverviewWebhooks

Reference

API

Explanation

Architecture

Quickstart

This walkthrough gets you from install to a successful payment in under 15 minutes.

1) Install

npm install @miniduck/stash

2) Create a payment

Choose a provider and use the unified createStash API.

Test mode

Use testMode: true to target sandbox endpoints during local development. Set it to false for live production traffic.

Required environment variables

Ozow

  • OZOW_SITE_CODE
  • OZOW_API_KEY
  • OZOW_PRIVATE_KEY

Payfast

  • PAYFAST_MERCHANT_ID
  • PAYFAST_MERCHANT_KEY
  • PAYFAST_PASSPHRASE

Paystack

  • PAYSTACK_SECRET_KEY

You can copy .env.example and fill in the values.

3) Handle webhooks

Verify the signature before you update your order.

4) Optional checks

Paystack amounts must be provided in minor units.

Stash unifies Ozow, Payfast, and Paystack for South African payments.

Docs stay in the repo for GitHub-first browsing.