Community-maintained payment provider templates for Sanwo — the universal payment SDK.
| Provider | Package | Status |
|---|---|---|
| Paystack | @sanwohq/paystack |
Published |
| Flutterwave | @sanwohq/flutterwave |
Published |
| Stripe | @sanwohq/stripe |
Published |
| Razorpay | @sanwohq/razorpay |
Published |
| Monnify | @sanwohq/monnify |
Published |
| Interswitch | @sanwohq/interswitch |
Published |
Anyone can contribute a new provider! Each provider is a small package with an HTML template that loads the payment gateway's SDK and handles checkout.
# Fork and clone this repo
git clone https://github.com/<your-username>/providers.git
cd providers && pnpm install
# Copy the template
cp -r providers/_template providers/my-provider
# Edit the files, build, and test
pnpm build && pnpm test
# Submit a PRWhen your PR is merged, it's automatically published to npm as @sanwohq/<provider-name>.
Each provider exports a SanwoProviderDefinition — a plain object with metadata and an HTML template. The template:
- Loads the provider's JavaScript SDK from their CDN
- Initializes the checkout with the merchant's public key and transaction details
- Reports results back to Sanwo via
sanwoCallback()
That's it. No server-side code, no secrets, no complex setup.
pnpm install # install dependencies
pnpm build # build all providers
pnpm test # run conformance + unit tests
pnpm typecheck # type checkApache-2.0