AGENT SKILL
invoice-checkout
Create a Fawaterak hosted invoice link for an Egyptian customer and track it to paid
适用职业财务
- License 许可
- MIT
- 所属仓库
- theYahia/WWmcp
- 最近更新
- 2026-09-26
- Stars
- ★ 38
- Forks
- 5
01 前言 Front Matter
- name
- invoice-checkout
- description
- Create a Fawaterak hosted invoice link for an Egyptian customer and track it to paid
- argument-hint
- <total EGP> <customer name> <email> <phone>
03 SKILL.md 正文
/invoice-checkout — Fawaterak hosted invoice
Algorithm
- Collect the cart: each item needs name, price and quantity. Compute cartTotal — it must equal the sum of the line items or Fawaterak rejects the invoice.
- Collect customer details (first name, last name, email, phone) and the three redirect URLs: successUrl, failUrl, and optionally pendingUrl.
- Call
create_invoice_linkwith cartTotal (a string), cartItems, successUrl, failUrl, and optionally currency (defaults to EGP) and pendingUrl. It returns an invoice id and a hosted checkout URL that offers every enabled method. - Send the customer the URL.
- Call
get_invoice_datawith the invoice_id to read status, paid amount, payment_method and transaction_id. - Fawry payments are not instant — a customer gets a reference code and pays at a kiosk. An invoice sitting in unpaid for hours is normal for Fawry; do not call it failed.
Response format
## Fawaterak invoice
**Invoice**: 88214
**Total**: 450 EGP
**Status**: unpaid → paid
**Method**: fawry
**Transaction**: FWR-99182736
**Customer**: Mona Hassan / mona@example.com
Checkout link: https://app.fawaterk.com/invoice/...
Notes
- cartTotal is a string; it must match the line items exactly.
- Use
get_payment_methodsfirst if the user wants to know which rails are actually enabled on this account before quoting options to a customer. - There is no webhook tool here — status comes from polling
get_invoice_data.
Examples
/invoice-checkout 450 "Mona Hassan" mona@example.com 01012345678
/invoice-checkout 1200 "Ahmed Ali" ahmed@example.com 01198765432
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