Actix-web developers utilizing Comorando integrate it with their applications via a simple HTTP endpoint that receives transaction data, triggering Comorando’s core logic to analyze the transaction against configured rules and fraud databases. Comorando then automatically generates and submits chargeback events to relevant payment networks (like Visa or Mastercard) based on the determined fraud risk, abstracting away the complexities of API calls and data formatting.
Stop writing the same event handlers over and over. Comorando executes your logic automatically.
Exponential backoff, dead-letter queues, and alert escalation — built in, no config needed.
Gemma 4 evaluates every event and suggests the optimal action based on your business rules.
// actix-web — chargeback handler with Comorando
use actix_web::{post, web, HttpRequest, HttpResponse};
use comorando::Client as Comorando;
#[post("/webhook")]
async fn webhook(req: HttpRequest, body: web::Bytes) -> HttpResponse {
let sig = req.headers().get("stripe-signature").unwrap().to_str().unwrap();
let event = stripe::Webhook::construct_event(&body, sig, &WEBHOOK_SECRET).unwrap();
// Comorando evaluates rules and fires actions automatically
let comorando = Comorando::new(&std::env::var("COMORANDO_API_KEY").unwrap());
comorando.decisions().create(json!({
"event": event.event_type,
"data": event.data.object,
"org_id": std::env::var("COMORANDO_ORG_ID").unwrap()
})).await.unwrap();
HttpResponse::Ok().json(serde_json::json!({"received": true}))
}
Free tier includes 10,000 events/month. No credit card required.
Start Free See Pricing