Skip to content
Back to skills

Method Specific Payment

ASecurity

Charge through one specific Fawaterak rail — Fawry, card, wallet or Meeza

  • 29 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 20, 2026
ai-agentsgorails

Security analysis

A100/100

Scanned September 20, 2026

npx -y skills add theYahia/WWmcp --skill method-specific-payment --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Method Specific Payment?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Method Specific Payment
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/theyahia-method-specific-payment/badge)](https://www.skillsdirectory.com/skills/theyahia-method-specific-payment)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: method-specific-payment
description: Charge through one specific Fawaterak rail — Fawry, card, wallet or Meeza
argument-hint: <method name> <total EGP> <customer details>
---

# /method-specific-payment — Force one payment method

## Algorithm

1. Call `get_payment_methods`. It returns each enabled method with its id, name, key
   (fawry, visa, meeza, wallet…) and commission rate.
2. Match the method the user named to a row and take its numeric id. If the method they want
   is not in the list, stop — it is not enabled on this account. Do not substitute another.
3. Show the commission rate for the chosen method before charging, so the user sees the cost.
4. Call `send_payment` with payment_method_id, cartTotal (a **string**), cartItems,
   successUrl, failUrl, and optionally currency and pendingUrl.
5. Call `get_invoice_data` with the returned invoice_id to confirm the outcome and pull the
   method-specific artifact — for Fawry that is the reference code the customer pays with.

## Response format

```
## Fawaterak payment — fawry

**Method**: Fawry (id 2, commission 1.0%)
**Invoice**: 88231
**Total**: 450 EGP
**Status**: unpaid
**Fawry reference**: 187 264 913

Customer pays this reference at any Fawry outlet within 48 hours.
```

## Notes

- Method ids are account-specific. Always read them from `get_payment_methods`; never hardcode.
- Wallet and Meeza flows return a redirect; Fawry returns a code. Present whichever the
  response actually contains.
- Commission differs per method — mention it when the user is choosing between rails.

## Examples

```
/method-specific-payment fawry 450 "Mona Hassan" mona@example.com
/method-specific-payment meeza 1200 "Ahmed Ali" ahmed@example.com
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.