📬 Webhook Tester & HMAC Signature Verifier
Hitung & verifikasi signature
HMAC-SHA256 (Payment Gateway Midtrans, Xendit, Tripay, Stripe, GitHub), ekstrak key JSON (dot-notation), dan dispatch mock payload ke server lokal Anda.
Preset:
Parameter Signature
Hasil Kalkulasi Hash ():
💡 Cara Verifikasi Signature di Laravel Controller:
$rawPayload = $request->getContent();
$calculated = hash_hmac('sha256', $rawPayload, config('services.gateway.secret'));
if (!hash_equals($calculated, $request->header('X-Signature'))) {
abort(403, 'Invalid webhook signature');
}
📋 Struktur Key JSON (Dot-Notation) untuk Akses $request->input('key.path')
| Dot Notation Path | Tipe Data | Contoh Nilai |
|---|---|---|
🚀 Kirim Mock Webhook ke Endpoint Anda
Simulasikan pengiriman webhook dari browser ke server staging / ngrok tunnel / cloudflared Anda.