跳到正文
Skillpedia
API 与服务器(后端)48k · #5404

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/pakistan-payments-stack/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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:

  1. Official merchant/developer integration docs (versioned if possible).
  2. Environment base URLs (sandbox and production).
  3. Auth/signature method and exact verification steps.
  4. Webhook/event payload examples and retry semantics.
  5. Settlement and payout timing docs.
  6. Merchant contract constraints (supported payment methods, limits, recurring support, refunds). If any of these are missing, respond with: UNSPECIFIED: Missing or unverified dependency Do 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)进行计费。

什么是 webhooks?

这是支付服务在付款发生时自动发送给你系统的通知,让你能够实时掌握每笔交易。

什么是“对账”(reconciliation)?

对账是指将你系统中记录的付款与支付服务确认的付款进行比对,确保两者一致、没有错误的过程。

详情

作者的原始描述

Design and implement production-grade Pakistani payment integrations (JazzCash, Easypaisa, bank/PSP rails, optional Raast) for SaaS with PKR billing, webhook reliability, and reconciliation.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5404
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能