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.
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 |