Generate top-up wallet integration
generate_topup_integration_snippetFor EXISTING apps: emits the recommended top-up wallet integration — ledger schema + cumulative-credit webhook handler + atomic invoice-settle function. Credits crypto payments to a user's balance first, then debits invoices from it, so over/under/late/duplicate payments become balance states, not payment exceptions. Pair with the payram-topup-wallet-integration skill. (New store with no users? Use the checkout/plugin path instead.)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_topup_integration_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | No | Which piece to emit: 'schema' (ledger DDL), 'webhook' (cumulative-credit handler), 'settle' (atomic invoice debit), or 'all'. | all |
| framework | No | Server framework for the webhook handler + settle function. | express |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| title | Yes | ||
| snippet | Yes |