Simulate webhook
payments_simulate_webhookGenerate correctly signed webhook headers and raw body for local payment testing in sandbox mode, then replay them with curl against your local endpoint.
Instructions
Produce a correctly signed webhook (headers + raw body) for local testing. In sandbox mode it uses the provider's real signing scheme and your webhook secret; replay it with curl against your LOCAL endpoint. Disabled in live mode. Never reuse sandbox webhook secrets in production.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"provider": "<provider>",
"type": "<type>",
"order_ref": "<order_ref>",
"amount": "<amount>"
},
"name": "payments_simulate_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| amount | Yes | Integer minor units (paise). Rs 499.00 = 49900 | |
| currency | No | ||
| provider | Yes | Gateway id | |
| order_ref | Yes | Merchant reference: 3-40 chars, letters/digits/_/- | |
| refund_ref | No | Merchant reference: 3-40 chars, letters/digits/_/- | |
| target_url | No | If given, the response includes a ready-to-run curl command | |
| provider_payment_id | No |