P
PAIYAH OUTFITTERS Demo E-Commerce • Built with pycer-sdk
Powered by Official npm: pycer-sdk

Checkout effortlessly with OwnPay SDK.

Experience how the TypeScript/Node.js SDK drives African e-commerce: instant Safaricom M-Pesa STK Push, Hosted Checkout sessions, and cryptographic HMAC-SHA256 webhook reconciliation in just 3 lines of code.

Shop Collection
checkout-integration.ts
npm i pycer-sdk
// 1. Configure client (defaults to https://pycer.quantivogroup.com)
import { OwnPay, verifyWebhookSignature } from 'pycer-sdk';
const ownpay = new OwnPay({
  apiKey: process.env.PYCER_API_KEY,
  baseUrl: process.env.PYCER_SANDBOX_BASE_URL ?? 'https://pycer.quantivogroup.com'
});
// 2. Direct Rail Payment (M-Pesa STK Push)
const payment = await ownpay.payments.create({
  amount: '14500.00', currency: 'KES',
  preferredRail: 'SAFARICOM_MPESA',
  partyA: { phone: '+254712345678' },
  partyB: { umid: 'MER-KE-00931' }
});
// 3. Hosted Checkout Session
const session = await ownpay.checkout.create({
  amount: '14500.00', currency: 'KES'
});
Server-Authoritative State Machine 11-State Invariant Verified

Curated Gear & Merchandise

Select items and test the complete OwnPay SDK checkout lifecycle.