Local payment and RTL checks

Check the callback. Check the checkout.

Check Paymob and Fawry webhook signatures locally, adapt a reference payment ledger, and lint Arabic checkout layouts.

Recorded checkout lint
python3 -I skills/mena-payops/scripts/rtl_lint.py docs/demo/checkout.html
LocationFindingSuggested replacement
docs/demo/checkout.html:1:18:ml-4ms-4
docs/demo/checkout.html:1:23:text-lefttext-start
docs/demo/checkout.html:2:16:margin-rightmargin-inline-end
docs/demo/checkout.html:2:35:float: leftfloat: inline-start
4 finding(s)
  • 4standard-library scripts
  • 13RTL lint rules
  • 0runtime dependencies

Feel the problem in 2 minutes

Route every callback. Play Webhook Triage: switch each payment webhook to the right bin.

Simulated training exercise, not a real scan result.

How it works

  1. Verify the callback

    Check the signature before applying any side effects. The local scripts use Paymob HMAC-SHA512 or Fawry SHA-256.

  2. Guard payment state

    Adapt the Paymob-oriented SQLite ledger to deduplicate operations and handle stale state updates.

  3. Lint the checkout

    Scan checkout markup for selected physical CSS and Tailwind utilities, then review the suggested logical replacements.

Documented agents

The README documents setup for these agents and tools. Live installation and discovery are UNVERIFIED in the supplied evidence.

  • Claude Code
  • Codex
  • Gemini CLI
  • OpenCode
  • GitHub Copilot
  • Antigravity
  • skills CLI
  • Claude.ai
  • ChatGPT / Gemini

Install

Use the README setup for your agent.

Use these documented plugin commands.

/plugin marketplace add QidarSarhan/mena-payops
/plugin install mena-payops@mena-payops

To build the bundles locally, run the README command from the repository root.

python3 -I tools/build.py --dist

Evidence

DOCUMENTED

Recorded checkout lint

The lint output reproduces the bundled checkout run from docs/demo/rtl-output.txt.

DOCUMENTED

Paymob HMAC scope

The local verifier signs 20 fields in fixed lexicographic key-path order. Other payload fields are outside the HMAC.

PARTIAL

Fawry V2 signature

The local verifier checks SHA-256 signatures using a field order from secondary sources. Official sandbox confirmation is UNVERIFIED.

Limits

  • Gateway checks run locally. Neither gateway was tested with real merchant payloads. Confirm Fawry V2 field order with merchant documentation or your sandbox. Use --order to override it.
  • Map Fawry states before using the Paymob-oriented SQLite ledger. It skips lower-rank and conflicting equal-rank updates. A child capture leaves its parent state unchanged.
  • RTL regex lint can miss issues or flag intentional code. Review numerals, bidi, dir and lang manually. Logical Tailwind replacements require 3.3+.
  • A clean run does not audit the full payment flow. Live installation, Windows/macOS execution and name availability are unverified in the product evidence. Avoid overwriting an existing skill folder.
Get Involved

Join Our Community

Whether you are submitting pull requests, or helping others debug, your participation powers this project.