pakistan-payments-stack
Lets your agent integrate Pakistani payment systems. It sets up online payments with local currency, reliability, and reconciliation.
What it does
This tool helps set up online payments for Pakistan, using services like JazzCash and Easypaisa. It ensures transactions are secure and reliable for businesses selling to Pakistan.
When to use it
- ✓When building an online service for customers in Pakistan.
- ✓When adding Pakistani payment options to an existing website.
- ✓When ensuring online payments are correctly recorded and verified.
Example of what to ask your AI
“Set up the JazzCash payment system for my online store in Pakistan.”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
The tool asks for official information about the chosen payment services, like documentation links and examples of how transactions are received. With this information, it builds a secure system to process payments.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add sickn33/agentic-awesome-skills --skill pakistan-payments-stackOr download just the file:
curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/pakistan-payments-stack/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from 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)
…
FAQ
What is 'PKR billing'?
It means billing in Pakistan's currency, the Pakistani Rupee (PKR).
What are 'webhooks'?
These are automatic notifications that payment services send to your system when a payment occurs, ensuring you know about the transaction in real-time.
What is 'reconciliation'?
It's the process of comparing payments recorded in your system with those confirmed by the payment services, to ensure everything matches and there are no errors.
Details
Original description by the author
Design and implement production-grade Pakistani payment integrations (JazzCash, Easypaisa, bank/PSP rails, optional Raast) for SaaS with PKR billing, webhook reliability, and reconciliation.
Popularity
- GitHub stars
- 48k
- Ranking position
- #3790
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
00-andruia-consultant
Helps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
sickn33/agentic-awesome-skills
007
Lets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
sickn33/agentic-awesome-skills
10-andruia-skill-smith
Helps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
sickn33/agentic-awesome-skills
20-andruia-niche-intelligence
Lets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
sickn33/agentic-awesome-skills
Similar skills
dashboard-builder
Helps your agent create useful monitoring dashboards. It turns data into charts that answer important system questions.
affaan-m/ECC
dev-team
Simulates a collaborative development team where different roles respond to a problem together. It's useful for getting multiple perspectives without manually switching agents.
affaan-m/ECC
ecc-council
Has your agent convene a four-voice council for difficult decisions. It's useful when there are multiple good options and debate is needed before choosing.
affaan-m/ECC