Back to articles
Carbon Layer v0.4 — Chaos testing for payment webhooks, now with Stripe and Cashfree support

Carbon Layer v0.4 — Chaos testing for payment webhooks, now with Stripe and Cashfree support

via Dev.to PythonPritom Mazumdar

A few days ago I shared Carbon Layer -> an open-source chaos engineering tool for payment flows. Here's what's new: Multi-provider webhook support Carbon Layer now generates provider-specific webhook payloads for Razorpay, Stripe, and Cashfree with the correct signing format for each: Razorpay Signature Header: X-Razorpay-Signature Signing Method: HMAC-SHA256 Encoding: Hex encoded Stripe Signature Header: Stripe-Signature Header Format: t=timestamp, v1=signature Signing Method: HMAC-SHA256 Extra Security: Includes timestamp verification to prevent replay attacks Cashfree Signature Header: x-webhook-signature Signing Method: HMAC-SHA256 Encoding: Base64 encoded Your webhook handler gets tested with the exact same format and signing it sees in production. We verified each implementation against the provider's official documentation. # Stripe webhooks carbon run dispute-spike --provider stripe --webhook-url http://localhost:8000/webhooks # Cashfree webhooks carbon run dispute-spike --prov

Continue reading on Dev.to Python

Opens in a new tab

Read Full Article
2 views

Related Articles