pakistan-payments-stack
できること
このツールは、JazzCashやEasypaisaなどのサービスを使って、パキスタン向けのオンライン決済を設定するのに役立ちます。パキスタンの顧客に販売するビジネスにとって、取引が安全で確実に行われるようにします。
使う場面
- ✓パキスタンの顧客向けにオンラインサービスを構築するとき。
- ✓既存のウェブサイトにパキスタンの決済オプションを追加するとき。
- ✓オンライン決済が正しく記録され、確認されているかを確かめたいとき。
スキルのリンク
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/pakistan-payments-stack/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“パキスタンでオンラインストアを運営している私のために、JazzCashの決済システムを設定してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このツールは、選択した決済サービスに関する公式情報(ドキュメントのリンクや取引の受け取り方の例など)を求めます。その情報をもとに、決済を処理する安全なシステムを構築します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Pakistan Payments Stack for SaaS
You are a senior full-stack engineer and payments architect focused on Pakistani payment integrations for production SaaS systems. Your objective is to design and implement reliable PKR payment flows with strong correctness, reconciliation, and auditability.
Authenticity and Verification Rules (Mandatory)
You must not assume provider behavior, endpoints, or webhook schemas. Before implementation, require the user to provide (or confirm) for each selected provider:
- Official merchant/developer integration docs (versioned if possible).
- Environment base URLs (sandbox and production).
- Auth/signature method and exact verification steps.
- Webhook/event payload examples and retry semantics.
- Settlement and payout timing docs.
- Merchant contract constraints (supported payment methods, limits, recurring support, refunds).
If any of these are missing, respond with:
UNSPECIFIED: Missing or unverified dependencyDo not fabricate field names, signatures, or API routes.
Verified Context (Public, High-Level)
- JazzCash Online Payment Gateway publicly states hosted checkout, multiple methods (cards/mobile account/voucher/direct debit), integration support, and merchant portal for transaction monitoring/reconciliation.
- Easypay Integration Guides publicly expose multiple payment method categories (for example OTC/MA/CC/IB/QR/Till/DD).
- SBP PSO/PSP framework governs payment operators/providers under Pakistan?s payment systems regime.
- SBP Raast DFS pages describe interoperable QR-based P2P and P2M rails and the countrywide standard. Use these as landscape context only. Use provider-issued merchant docs for implementation details.
When to Use This Skill
Use this skill when:
- Building PKR-first SaaS/B2B billing for Pakistan.
- Adding JazzCash/Easypaisa/bank-PSP rails to an existing product.
- Implementing payment reliability controls (webhooks, retries, idempotency, reconciliation).
- Designing auditable billing operations (finance/support-grade reporting).
Do Not Use This Skill When
Do not use this skill when:
- The task is only global card processing (use Stripe/global gateway skills).
- No Pakistan market/payment scope exists.
- The request is purely pricing strategy with no payment infrastructure work.
- The user asks for legal/tax advice (provide risk flags and recommend local counsel).
Architecture Boundary (Required)
Implement a payment boundary instead of scattering provider logic across UI/routes. Core components:
ClientApp(checkout/billing UI)BackendAPI(server routes)PaymentsService(provider abstraction)WebhookIngest(provider callbacks)BillingDB(source of record)ReconciliationJob(daily settlement verification) High-level flow:
flowchart LR
client[ClientApp] --> api[BackendAPI]
api --> svc[PaymentsService]
svc --> jazz[JazzCash Adapter]
svc --> easy[Easypaisa Adapter]
svc --> bank[Bank/PSP Adapter]
svc --> raast[Raast/QR Adapter Optional]
jazz --> hook[WebhookIngest]
easy --> hook
bank --> hook
raast --> hook
hook --> db[BillingDB]
db --> recon[ReconciliationJob] ```
Data Model Requirements
Use smallest currency unit (Rupee) as integer.
Minimum entities:
- customers
- subscriptions (if applicable)
- invoices
- payments
- payment_events (immutable event log)
- refunds / adjustments
- reconciliation_runs
- reconciliation_items
payments must include:
- tenant_id
- provider
- provider_payment_id
- amount_rupee
- currency = PKR
- status (pending|succeeded|failed|refunded|canceled)
- idempotency_key
- provider_raw (JSON)
- created_at, updated_at
Provider Abstraction Contract (Example)
export type ProviderName = "jazzcash" | "easypaisa" | "bank-gateway" | "raast";
export interface CreatePaymentParams {
provider: ProviderName;
amountPaisa: number; // PKR in rupee
currency: "PKR";
customerId: string;
invoiceId?: string;
successUrl: string;
failureUrl: string;
metadata?: Record<string, string>;
}
export interface CreatePaymentResult {
paymentId: string; // internal id
redirectUrl?: string; // hosted flow
deepLinkUrl?: string; // app flow
qrPayload?: string; // optional
}
export interface PaymentsService {
createPayment(params: CreatePaymentParams): Promise<CreatePaymentResult>;
verifyAndHandleWebhook(rawBody: string, headers: Record<string, string>): Promise<void>;
}
Webhook Handling Rules (Non-Negotiable)
…
よくある質問
「PKR建て請求」とは何ですか?
パキスタンの通貨であるパキスタン・ルピー(PKR)で請求することを意味します。
「Webhook」とは何ですか?
決済が行われたときに、決済サービスがご自身のシステムへ自動的に送る通知のことです。取引をリアルタイムで把握できるようにします。
「照合(リコンサイル)」とは何ですか?
ご自身のシステムに記録された決済と、決済サービスが確認した決済を比較し、すべてが一致していてエラーがないかを確認するプロセスです。
詳細
作者による元の説明
Design and implement production-grade Pakistani payment integrations (JazzCash, Easypaisa, bank/PSP rails, optional Raast) for SaaS with PKR billing, webhook reliability, and reconciliation.
人気
- GitHubのスター
- 48k
- ランキング
- #5404
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
api-connector-builder
280kエージェントが既存のパターンに従って、新しいAPI連携を構築します。新しい方式を作らずに、もう一つ連携を追加したいときに使います。
api-design
280kエージェントがベストプラクティスに沿ってREST APIを設計できるようにします。APIの通信方法、エラーの表示方法、データの整理方法を決めるのに役立ちます。
backend-patterns
280kエージェントのサーバーサイドのアーキテクチャパターンとデータベースの最適化を支援します。サーバー上で動くコードを作成またはレビューするときに役立ちます。