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 --provider cashfree --webhook-url http://localhost:8000/webhooks
# Razorpay webhooks (original)
carbon run dispute-spike --provider razorpay --webhook-url http://localhost:8000/webhooks
Zero-config install
The other big change — PostgreSQL is no longer required. Carbon Layer now uses SQLite by default:
pip install carbon-layer
carbon run dispute-spike --provider mock --webhook-url http://localhost:8000/webhooks
No database setup. No environment variables. Two commands and you're testing.
PostgreSQL is still supported for teams: pip install carbon-layer[postgres]
What Carbon Layer does
If you missed the first post — Carbon Layer simulates payment failure modes (dispute spikes, refund storms, gateway errors) and fires signed webhook events at your endpoint. It reports exactly what your handler returned for each event type.
7 scenarios built in. Provider specific signed payloads. HTML reports. CI/CD callbacks.
What's next
We're building a hosted version with dashboards, scheduled runs, and compliance reports for teams.
If that interests you, join the waitlist:carbon-pro-waitlist
GitHub: github.com/Pritom14/carbon-layer
Feedback welcome —> especially if you've tried it against your Stripe/Razorpay or Cashfree webhook handlers.
Top comments (0)