SDKs
Implementation Code
Ready-to-use implementation code for integrating YardPay Pro into your web, mobile, and server applications. Each SDK wraps the REST API with idiomatic patterns for its platform — just copy the files into your project.
How It Works
Each SDK provides complete, copy-paste implementation code. No package managers needed.
1. Copy the files
Each SDK is a small set of files with the API client, typed models, and service wrappers.
2. Set your API key
Initialize the client with your API key. Use sk_test_ for sandbox.
3. Call the API
Use the typed service methods to create invoices, process payments, manage subscriptions, and more.
API Coverage
PaymentsPay invoices, register cards, 3D Secure handling
InvoicesCreate, retrieve, list, QR codes, payment links
SubscriptionsProducts, plans, inventory management
Accounts & TransfersBalance queries, fund transfers
WebhooksSignature verification (server SDKs)
Error HandlingTyped exceptions with status codes
Web / Client
Client-side implementations for web and mobile applications.
Web
JavaScript
Zero-dependency client using native fetch. Covers payments, invoices, subscriptions, accounts, and transfers.
yardpaypro.js + modulesWeb
TypeScript
Fully typed implementation with interfaces, enums, and generic responses. Drop-in for any TypeScript project.
3 files (types, client, services)Mobile
Flutter / Dart
Dart implementation for Flutter apps on iOS, Android, and web. Uses the built-in http package.
client.dart + servicesMobile
Swift
Native Swift with async/await and Codable models. Uses URLSession — no SPM packages needed.
3 Swift filesServer
Server-side implementations for backend integrations and secure API access.
Server
C# / .NET
Uses HttpClient and System.Text.Json. Includes DI registration, ASP.NET Core controllers, and webhook verification.
3 .cs filesServer
PHP
Uses cURL with no Composer packages. Includes webhook signature verification. Works with any framework.
2 PHP filesServer
Node.js
Native fetch with automatic retries and backoff. Includes Express middleware for webhook verification.
3 .mjs files