Paymob-AI-Integration-Skill

skill
Security Audit
Pass
Health Pass
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 12 GitHub stars
Code Pass
  • Code scan — Scanned 1 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Official Paymob payment integration skill for Claude Code — Intention API, HMAC, mobile wallets, BNPLs, Apple Pay across Node.js, Python, PHP, Flutter and more

README.md

Paymob Integration Skill for AI Agents

version
license
works with
regions

Give any AI coding agent expert, workflow-driven knowledge of the Paymob payment gateway across Egypt, UAE, KSA, and Oman. The agent routes the developer by platform, walks through onboarding, and produces correct, copy-ready code for accepting cards, mobile wallets, BNPLs, Apple Pay, Google Pay, kiosk, and bank installments — on any tech stack.

Ships as a Claude Code / Cowork plugin and as a portable prompt (universal-prompt.md) + AGENTS.md so it works in Cursor, Windsurf, GitHub Copilot, OpenAI Codex, ChatGPT, Gemini, and more.


Works with any AI agent

The guidance is plain Markdown + code, so it's agent-agnostic. Pick the entrypoint your tool understands:

Agent / tool How to use
Claude Code / Cowork Install as a plugin (see below) — auto-activates as an Agent Skill
OpenAI Codex, Aider, Zed, Gemini CLI, Jules Copy AGENTS.md into your project root — these tools read it automatically
Cursor Add universal-prompt.md as a rule (.cursor/rules/paymob.mdc) or @-reference it in chat
Windsurf Drop the prompt into .windsurf/rules/paymob.md (or .windsurfrules)
GitHub Copilot Paste the prompt into .github/copilot-instructions.md
Cline, Continue, Roo Add universal-prompt.md as a rules / context file
ChatGPT, Gemini, Claude.ai, any chat UI Paste universal-prompt.md into the system prompt / custom instructions

Single source of truth: the full skill lives in skills/paymob-integration/. universal-prompt.md is the portable distillation, and AGENTS.md is a concise cross-agent router to it — so there's no drift between versions.


What it does

When you ask the agent for help integrating Paymob, it provides:

  • Platform routing first — detects Shopify, an official e-commerce plugin platform (WooCommerce, Magento, Odoo, OpenCart, PrestaShop, …), or a custom build, and steers you to the fastest correct path instead of hand-coding when a prebuilt integration already exists.
  • Guided onboarding — merchant-status check, dashboard credential collection, and sandbox-first testing before go-live.
  • Complete Intention API knowledge — the only official payment-creation flow, with Unified Checkout (redirect) and the Pixel SDK (embedded).
  • Native Mobile SDK flow — iOS / Android / Flutter / React Native, keeping the Secret Key off the device.
  • Corrected, copy-ready code in your stack — Node.js/TypeScript/NestJS, Python/Django/Flask/FastAPI, PHP/Laravel, .NET/C#, Ruby/Rails, and React/Next.js/Vue.
  • All 3 HMAC types — transaction, card token, and subscription — with exact field orders, SHA-512, and timing-safe comparison.
  • Reconciliation — a Transaction Inquiry fallback for callbacks that never arrive, stuck "pending" orders, and admin lookups.
  • Core & advanced features — subscriptions, saved cards (CIT/MIT), Auth/Capture, refund/void, split features, convenience fees.
  • Live-doc discipline — points at Paymob's llms.txt index, developer docs, Integration Wizard, and community forum so the agent can confirm anything that may have changed.

Installation

Claude Code (CLI)

claude plugin install --git https://github.com/PaymobAccept/Paymob-Claude-Integration-Skill

Cowork (Desktop)

Install from the plugin marketplace, or point to this repo as a custom marketplace source.

Other agents (Cursor, Windsurf, Copilot, Codex, …)

git clone https://github.com/PaymobAccept/Paymob-Claude-Integration-Skill.git

Then follow the Works with any AI agent table — copy AGENTS.md or universal-prompt.md into your own project at the location your tool expects.

Local development (Claude Code)

claude --plugin-dir ./Paymob-Claude-Integration-Skill

Usage

Once installed, the agent activates on any Paymob request — or even a generic regional payment request ("add a payment gateway to my UAE store"). Try prompts like:

  • "Help me integrate Paymob card payments in my Next.js app"
  • "Add Vodafone Cash wallet payments to my Laravel backend"
  • "My Paymob HMAC validation keeps failing — here's my code..."
  • "Set up Paymob subscriptions with Python/FastAPI"
  • "Integrate Apple Pay with Paymob in my React Native app"
  • "Reconcile a Paymob order that's stuck pending"
  • "Add Paymob to my Shopify / WooCommerce store"

Repository structure

Paymob-Claude-Integration-Skill/
├── AGENTS.md                          # Cross-agent entrypoint (Codex, Aider, Zed, Gemini CLI, …)
├── universal-prompt.md                # Portable prompt (Cursor, Windsurf, Copilot, ChatGPT, Gemini, …)
├── .claude-plugin/
│   └── plugin.json                    # Claude Code plugin manifest (v3.1.0)
├── skills/
│   └── paymob-integration/
│       ├── SKILL.md                   # Workflow backbone: platform routing → onboarding → web/mobile → testing
│       └── references/
│           ├── shopify-apps.md        # Paymob Shopify apps (on-site / off-site / BNPL) + install path
│           ├── intention-api.md       # Create Intention spec, Unified Checkout, common errors
│           ├── mobile-sdks.md         # Native SDK flow (iOS / Android / Flutter / React Native)
│           ├── hmac-verification.md   # Transaction HMAC: field order, SHA-512, worked example
│           ├── transaction-inquiry.md # Pull-based status checks / reconciliation
│           ├── test-credentials.md    # Sandbox cards, wallets, OTPs
│           ├── advanced-features.md   # Subscriptions, saved cards (CIT/MIT), Auth/Cap, refund/void, split, fees
│           ├── live-resources.md      # llms.txt, dev docs, Integration Wizard, community — when/how to use
│           ├── code-nodejs.md         # Node.js / TypeScript / Express / NestJS
│           ├── code-python.md         # Python / Django / Flask / FastAPI
│           ├── code-php.md            # PHP / Laravel
│           ├── code-dotnet.md         # .NET / C# / ASP.NET
│           ├── code-ruby.md           # Ruby / Rails
│           └── code-frontend.md       # React / Next.js / Vue + Unified Checkout / Pixel SDK
├── LICENSE
└── README.md

Payment methods covered

Method Regions Notes
Cards (Visa, MC, Amex, MADA, OmanNet) EGY, KSA, UAE, OMN 3DS, MOTO, Card-on-File, Auth/Cap
Mobile Wallets (Vodafone Cash, Orange Cash, e& money, WePay, StcPay) EGY, KSA
BNPLs (Valu, Tabby, Tamara, Souhoola, Sympl, and more) EGY, KSA, UAE 15+ providers
Apple Pay EGY, KSA, UAE, OMN Requires certificates
Google Pay KSA, UAE, OMN Not yet in Egypt
Bank Installments EGY Live IDs only
Kiosk (Aman, Masary) EGY No refund support

Supported regions

Region Base URL
Egypt (EGY) https://accept.paymob.com
Oman (OMN) https://oman.paymob.com
Saudi Arabia (KSA) https://ksa.paymob.com
UAE https://uae.paymob.com

Security

  • Only the Public Key (pk_*) is safe in frontend code. The Secret Key, API Key, and HMAC Secret are server-side only — never commit them or ship them in a mobile binary.
  • The HMAC-verified webhook callback is the source of truth for payment status — never the browser redirect params or a mobile SDK result.
  • Always verify HMAC with SHA-512 and a timing-safe comparison, and process callbacks idempotently (key on order.id / special_reference).

Staying current

Specs embedded here are known-good as of June 2026. Paymob changes endpoints, field orders, and SDK versions on its own schedule — the skill instructs the agent to cross-check the live docs (references/live-resources.md, especially the machine-readable llms.txt index) and lets the live docs win on any disagreement.

Support & resources

Contributing

Contributions are welcome! If Paymob releases new APIs or you have improvements for a specific tech stack:

  1. Fork this repo
  2. Create a branch (git checkout -b feature/add-go-support)
  3. Edit the relevant reference file (or add a new one) — keep SKILL.md, universal-prompt.md, and AGENTS.md in sync
  4. Submit a pull request

License

MIT — see LICENSE for details.

Reviews (0)

No results found