Chuyển đến nội dung
Skillpedia
API và máy chủ (backend)48k · #5404

pakistan-payments-stack

Skill này làm gì

Công cụ này giúp thiết lập thanh toán trực tuyến cho Pakistan, dùng các dịch vụ như JazzCash và Easypaisa. Nó đảm bảo các giao dịch an toàn và đáng tin cậy cho doanh nghiệp bán hàng tại Pakistan.

Khi nào nên dùng

  • ✓Khi xây dựng dịch vụ trực tuyến cho khách hàng ở Pakistan.
  • ✓Khi thêm các phương thức thanh toán của Pakistan vào một website hiện có.
  • ✓Khi đảm bảo các thanh toán trực tuyến được ghi nhận và xác minh đúng.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/pakistan-payments-stack/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/pakistan-payments-stack/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Thiết lập hệ thống thanh toán JazzCash cho cửa hàng trực tuyến của tôi ở Pakistan.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ yêu cầu thông tin chính thức về các dịch vụ thanh toán đã chọn, như liên kết tài liệu và ví dụ về cách giao dịch được nhận. Với thông tin này, nó xây dựng một hệ thống an toàn để xử lý thanh toán.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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)

…
Câu hỏi thường gặp

“PKR billing” là gì?

Nghĩa là xuất hóa đơn bằng đơn vị tiền tệ của Pakistan, đồng rupee Pakistan (PKR).

“Webhooks” là gì?

Đây là các thông báo tự động mà dịch vụ thanh toán gửi đến hệ thống của bạn khi có giao dịch, giúp bạn biết về giao dịch đó theo thời gian thực.

“Reconciliation” là gì?

Đây là quá trình so sánh các thanh toán được ghi trong hệ thống của bạn với những thanh toán được dịch vụ thanh toán xác nhận, để đảm bảo mọi thứ khớp và không có sai sót.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#5404
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự