CT

CodeTools

Home/Tools/Payment Webhook Simulator
Tools

Payment Webhook Simulator

Simulate payment callbacks from Alipay, WeChat Pay, and Stripe. Fill in parameters, generate a signed POST request, and send it to your webhook URL for testing.

Callback Parameters
curl -X POST "https://your-domain.com/api/payment/webhook" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d 'out_trade_no=OUT20260712GYDQ38&total_amount=99.99&subject=VIP%20Membership&trade_no=T20260712P9G10F&trade_status=TRADE_SUCCESS&timestamp=2026-07-12T03%3A38%3A10.837Z&sign_type=HMAC-SHA256&sign=%5Bcalculated%20using%20HMAC%20Generator%5D'
Replace the URL with your actual webhook endpoint

This tool generates sample payment callback payloads for testing. Verify signatures with HMAC Signature Generator.

The send test feature sends the generated payload to your endpoint. For localhost endpoints, use a tunnel service.

How to use this tool

Simulate payment callback payloads to test an endpoint you own before enabling a real payment integration.

Suggested workflow

  1. Choose a provider-style test payload.
  2. Set a webhook URL that you are authorized to test.
  3. Send the simulated callback and verify your handler's response.

Good to know

Use test credentials and sandbox endpoints; real payment events must be verified with the provider's documented signature process.

For authorized sandbox and integration testing only.

Payment Webhook Simulator - CodeTools Toolbox - 47 free online developer tools.