SDK Documentation
Official PonponPay SDKs for multiple programming languages. Choose the SDK that fits your tech stack.
Available SDKs
JavaScript/TypeScript
For Node.js, React, Vue, Next.js and browser applications.
npm install @ponponpay/sdkPHP
For Laravel, Symfony, WordPress and PHP applications.
composer require ponponpay/sdk.NET (C#)
For ASP.NET Core, Blazor and .NET applications.
dotnet add package PonponPay.SDKPython
For Django, Flask, FastAPI and Python applications.
pip install ponponpayArchitecture Overview
PonponPay SDKs are designed with security in mind. The architecture separates server-side and client-side operations:
- Server SDK: Handles API Key authentication, order creation, and webhook verification. Must run on your backend.
- Browser SDK: Handles payment UI (redirect/modal) and status polling. No API Key required.
Quick Start
The typical integration flow:
- Install the SDK for your language
- Initialize the client with your API Key (server-side)
- Create a payment order
- Redirect user to the payment URL or open in modal
- Handle webhook notifications for payment confirmation
Error Handling
All SDKs throw specific exceptions for different error types:
| Error Type | Description |
|---|---|
AuthenticationError | Invalid API Key |
ValidationError | Invalid request parameters |
NetworkError | Network connection issues |
ApiError | API returned an error |