⚡ Bun 1.4+ Native IPC • TypeScript • React 18
Payment Plugin Studio
Build high-performance payment gateway plugins on Bun that execute via sub-millisecond JSON-RPC with the Rust Core.
Interactive StudioBun 1.4+ • TypeScript • React 18
Full-Stack Plugin Builder
Generate production-ready payment gateway drivers in seconds.
import { definePlugin } from '@zirzir/plugin-sdk';
export default definePlugin({
async charge({ config, reference, amount, currency, phone }) {
console.log(`⚡ Initiating ${currency} ${amount} charge on MTN MoMo for ${phone}`);
// 1. Call MTN MoMo API
const response = await fetch('https://api.mtn_momo.com/v1/charge', {
method: 'POST',
headers: {
'Authorization': `Bearer ${config.api_key}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
ref: reference,
amount,
currency,
phone,
}),
});
const data = await response.json();
return {
status: 'pending',
provider_txn_id: data.id || `TXN_${Date.now()}`,
payment_url: data.checkout_url || null,
};
},
async verifyWebhook({ config, payload, signature }) {
// 2. Validate cryptographic signature
const isValid = payload && signature;
return {
reference: payload.reference,
status: payload.status === 'SUCCESS' ? 'completed' : 'failed',
provider_txn_id: payload.txn_id,
amount: payload.amount,
currency: payload.currency,
};
},
});
Sub-Millisecond IPC
High-speed stdio JSON-RPC 2.0 pipe between Rust Core & Bun daemon.
Hot-Loaded Frontend
React components bundle into standalone ui.js loaded dynamically into the dashboard.
Automated Test Harness
Run zirzir plugin test to verify schema, RPC handshake, and simulated payments.