AGENT SKILL
method-specific-payment
Charge through one specific Fawaterak rail — Fawry, card, wallet or Meeza
- License 许可
- MIT
- 所属仓库
- theYahia/WWmcp
- 最近更新
- 2026-09-26
- Stars
- ★ 38
- Forks
- 5
01 前言 Front Matter
- name
- method-specific-payment
- description
- Charge through one specific Fawaterak rail — Fawry, card, wallet or Meeza
- argument-hint
- <method name> <total EGP> <customer details>
03 SKILL.md 正文
/method-specific-payment — Force one payment method
Algorithm
- Call
get_payment_methods. It returns each enabled method with its id, name, key (fawry, visa, meeza, wallet…) and commission rate. - 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.
- Show the commission rate for the chosen method before charging, so the user sees the cost.
- Call
send_paymentwith payment_method_id, cartTotal (a string), cartItems, successUrl, failUrl, and optionally currency and pendingUrl. - Call
get_invoice_datawith 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
04 同仓库更多 Skills
refund-payment
Возврат по платежу — полный или частичный. Проверяет статус перед возвратом
★ 38
daily-report
Отчёт по платежам за сегодня — суммы, статусы, итого. Использует list_payments
★ 38
create-and-track
Создать платёж в ЮKassa и показать ссылку для оплаты. Использует create_payment и get_payment
★ 38
check-account
Проверка статуса магазина ЮKassa — тестовый/боевой, фискализация, ID
★ 38
semantic-core
Сбор семантического ядра под русский рынок — частотность, расширение, сезонность
★ 38
geo-priority
Где спрос по фразе выше среднего — регионы РФ по объёму и affinity для геотаргетинга
★ 38