Skip to content
Back to skills

Refund Flow

ASecurity

Refund a bKash payment safely — verify first, refund, then confirm refund status

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

Security analysis

A100/100

Scanned September 20, 2026

npx -y skills add theYahia/WWmcp --skill refund-flow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Refund Flow?

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

Security grade badge for Refund Flow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/theyahia-refund-flow/badge)](https://www.skillsdirectory.com/skills/theyahia-refund-flow)

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: refund-flow
description: Refund a bKash payment safely — verify first, refund, then confirm refund status
argument-hint: <paymentID or trxID> <amount> <sku> [reason]
---

# /refund-flow — bKash refund

## Algorithm

1. Identify the payment. If the user gave a paymentID, call `query_payment` with it.
   If they gave a transaction reference, call `search_transaction` with the trxID.
2. Check the returned status. Refund only a completed payment. If the status is anything
   else, stop and report it — do not attempt the refund.
3. Confirm the refundable amount with the user. bKash needs amount as a **string**, plus
   the sku of the item being refunded.
4. Call `refund_payment` with paymentID, trxID, amount, sku and optionally reason.
5. Call `query_refund` with paymentID, trxID and sku to read back the refund status.
   Refunds are not always instant — if it is still pending, say so.

## Response format

```
## bKash refund

**Original**: TR0011ON1565343075976 / trxID 8H7D9K2L01 — 1,500 BDT (Completed)
**Refunded**: 500 BDT (partial)
**Reason**: damaged item
**Refund status**: Completed
```

## Notes

- Both paymentID and trxID are required by `refund_payment` — get trxID from
  `query_payment` or `search_transaction` first, never guess it.
- sku is mandatory. If the merchant has no SKUs, use the order number, but be consistent —
  `query_refund` matches on the same sku.
- Partial refunds: pass the partial amount. Repeat refunds on the same sku are how bKash
  models multiple partials; check `query_refund` before sending another.

## Examples

```
/refund-flow TR0011ON1565343075976 500 SKU-114 "damaged item"
/refund-flow trxID 8H7D9K2L01 1500 ORDER-88
```

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.