AGENT SKILL
collect-payment
Take a Chapa payment in Ethiopia — build the checkout link, then verify it
- License 许可
- MIT
- 所属仓库
- theYahia/WWmcp
- 最近更新
- 2026-09-26
- Stars
- ★ 38
- Forks
- 5
01 前言 Front Matter
- name
- collect-payment
- description
- Take a Chapa payment in Ethiopia — build the checkout link, then verify it
- argument-hint
- <amount ETB> <customer email> <first name> <last name> [tx_ref]
03 SKILL.md 正文
/collect-payment — Chapa checkout
Algorithm
- Collect amount (a string, e.g. "250"), email, first_name, last_name. Optional: phone_number, currency (defaults to ETB), callback_url, return_url, customization_title, customization_description.
- Generate tx_ref yourself if the user did not give one — it must be unique per attempt (e.g. order number plus timestamp). Reusing a tx_ref makes Chapa reject the request.
- Call
initialize_transactionwith those fields. It returns a checkout_url. - Send the customer to the checkout_url. Wait for them to finish — do not verify early, a fresh transaction reads as pending.
- Call
verify_transactionwith the same tx_ref. Read status, amount, charge (Chapa's fee), payment method and customer info from the response. - If status is pending after the customer says they paid, retry
verify_transactiononce after a short wait before treating it as failed.
Response format
## Chapa payment
**tx_ref**: ORDER-2026-0142-1725350400
**Amount**: 250 ETB
**Charge (fee)**: 8.75 ETB
**Status**: success
**Method**: telebirr
**Customer**: Abebe Kebede / abebe@example.com
Checkout link: https://checkout.chapa.co/checkout/payment/...
Notes
- amount is a string in this API. Pass "250", not 250.
- Chapa supports ETB and USD; anything else will be rejected.
- Never generate a tx_ref that collides with a previous one — verification keys off it.
Examples
/collect-payment 250 abebe@example.com Abebe Kebede
/collect-payment 1200 sara@example.com Sara Tesfaye ORDER-991
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