Skip to main content

The Unified Payment Engine for the Web

Connect bKash, Nagad, SSLCommerz, and Stripe in minutes.
Write once, accept payments anywhere.

▲ ~npm install @foxses/pay
Overview

What is Foxses Pay?

Foxses Pay is a unified, developer-first payment engine for JavaScript and the Web. Instead of integrating and maintaining separate libraries for bKash, Nagad, SSLCommerz, and Stripe, Foxses Pay bridges them into a single, standardized client API.

Unified API Wrapper

Create checkout URLs, process agreements, and query payments across different gateways using the same configuration structure.

Automated Security

Built-in signature validation and webhook hash integrity checkers prevent billing spoofing out of the box.

Zero Boilerplate

Designed with TypeScript for strict type checking. Connect, verify, and settle payments with just a few lines of clean code.

Foxses Pay logoSDK Core
Stripe
Stripe
bKash
bKash
Nagad
Nagad
Coinbase
Coinbase
Coinpayments
Coinpayments
Cryptomus
Cryptomus
Binance
Binance
Payeer
Payeer
PayPal
PayPal
Modular Core

Supported Providers

Each provider is a separate package — install only what you need.

bKash
Stable

bKash

Bangladesh

Tokenized Checkout API v1.2.0 — token-based auth, auto refresh.

npm i @foxses/pay-bkash
Nagad
Stable

Nagad

Bangladesh

Checkout API v0.2.0 — RSA encryption for all sensitive data.

npm i @foxses/pay-nagad
SSLCOMMERZ
Stable

SSLCommerz

Bangladesh

Payment Gateway API v4 — all Bangladeshi cards & mobile banking.

npm i @foxses/pay-sslcommerz
Stripe
Stable

Stripe

Global

Checkout Session API — 135+ currencies, card payments, webhooks.

npm i @foxses/pay-stripe
PayPal
Stable

PayPal

Global

Orders API v2 — one-time & recurring payments, buyer protection.

npm i @foxses/pay-paypal
Binance Pay
Stable

Binance Pay

Global

Binance Pay API — crypto checkout, QR code, 700+ digital assets.

npm i @foxses/pay-binance
Payeer
Stable

Payeer

Global

Payeer Merchant API — multi-currency wallet, instant settlements.

npm i @foxses/pay-payeer
Coinbase
Stable

Coinbase

Global

Commerce API — Bitcoin, Ethereum, USDC & more, no account required.

npm i @foxses/pay-coinbase
CoinPayments
Stable

CoinPayments

Global

IPN-based API — 2000+ altcoins, multi-coin wallet support.

npm i @foxses/pay-coinpayments
Cryptomus
Stable

Cryptomus

Global

Crypto payment gateway — static addresses, recurring billing.

npm i @foxses/pay-cryptomus
Stable

NOWPayments

Global

Crypto payment API — accept 150+ cryptocurrencies with sandbox support.

npm i @foxses/pay-nowpayments
Benefits

Why foxses-pay?

A robust, standard wrapper built for speed, safety, and developer efficiency.

Simple API

Three functions — createPayment, verifyPayment, refund. No provider-specific code in your business logic.

Modular

Install only the providers you need. @foxses/pay includes all. Or mix-and-match individual packages.

Type Safe

Full TypeScript support with strict types. Autocomplete for config, params, and responses.

Error Handling

Typed errors — AuthenticationError, ValidationError, NetworkError, ProviderError.

Unified Response

Every provider returns the same PaymentResponse shape. No provider-specific parsing needed.

Switch Providers

Change provider in one line. Your business logic stays the same.