Documentation Index
Fetch the complete documentation index at: https://vowena.xyz/docs/llms.txt
Use this file to discover all available pages before exploring further.
transfer call - the merchant pays from their own balance, not from the contract.
Parameters
| Name | Type | Description |
|---|---|---|
sub_id | u64 | The subscription ID to refund. |
amount | i128 | The refund amount in stroops. |
Authorization
refund() call and the nested token.transfer().
Return value
None (void).
Events emitted
| Event | Topics | Data |
|---|---|---|
refund | subscriber, sub_id, amount | Refund details |
Error cases
| Code | Name | Description |
|---|---|---|
| 8 | SubNotFound | No subscription exists with the given sub_id. |
Examples
- SDK
- Soroban CLI
The refund amount is not validated against previous charges. The merchant can refund any amount they choose, including partial refunds. The merchant must have sufficient token balance to cover the refund.