Signet

Stripe

Ask Signet before you take a Stripe payment. Use its evidence when one is disputed.

What you need

The tag on your payment page, the Signet server helper and Stripe’s official library.

Before the payment

Assess first. Put the session and the decision in the payment’s metadata.

const v = await signet.assess({ sessionId: req.body.signet_session_id, event: 'checkout', transactionId: order.id,
  email: order.email, amount: order.cents / 100, currency: 'USD', ip: req.ip, userAgent: req.get('user-agent') });
if (v.decision === 'deny') return res.status(402).send('We could not take this payment.');

const payment = await stripe.paymentIntents.create({
  amount: order.cents, currency: 'usd', automatic_payment_methods: { enabled: true },
  metadata: { order_id: order.id, signet_session_id: req.body.signet_session_id, signet_decision: v.decision } });
v = signet.assess(form["signet_session_id"], event="checkout", transaction_id=order.id,
                  email=order.email, amount=order.cents / 100, currency="USD", ip=client_ip, user_agent=user_agent)
if v["decision"] == "deny":
    abort(402)

payment = stripe.PaymentIntent.create(
    amount=order.cents, currency="usd", automatic_payment_methods={"enabled": True},
    metadata={"order_id": order.id, "signet_session_id": form["signet_session_id"], "signet_decision": v["decision"]})

On review, take the payment and wait before you ship. If Signet does not answer, continue.

Act on the decision

DecisionWhat to do
allowConfirm the payment.
reviewConfirm, then check before you ship.
denyDo not confirm it.

When a payment is disputed

Listen for charge.dispute.created. Build the evidence from your order ID and stage the narrative on the dispute.

const event = stripe.webhooks.constructEvent(rawBody, req.get('stripe-signature'), process.env.STRIPE_WEBHOOK_SECRET);
if (event.type === 'charge.dispute.created') {
  const dispute = event.data.object;
  const payment = await stripe.paymentIntents.retrieve(dispute.payment_intent);
  const ev = await signet.disputeEvidence({ transactionId: payment.metadata.order_id,
    disputeDate: new Date(dispute.created * 1000), reason: dispute.reason === 'fraudulent' ? 'fraud' : 'other' });
  if (ev.strength === 'strong' || ev.strength === 'moderate')
    await stripe.disputes.update(dispute.id, { evidence: { uncategorized_text: ev.narrative }, submit: false });
}
event = stripe.Webhook.construct_event(raw_body, headers["Stripe-Signature"], webhook_secret)
if event["type"] == "charge.dispute.created":
    dispute = event["data"]["object"]
    payment = stripe.PaymentIntent.retrieve(dispute["payment_intent"])
    ev = signet.dispute_evidence(transaction_id=payment["metadata"]["order_id"])
    if ev["strength"] in ("strong", "moderate"):
        stripe.Dispute.modify(dispute["id"], evidence={"uncategorized_text": ev["narrative"]}, submit=False)

submit: false only stages the text. Read it, add your receipts, then submit. For Compelling Evidence 3.0, see Dispute Evidence.

Label confirmed fraud

await signet.feedback(payment.metadata.signet_session_id, 'fraud', 'chargeback');
signet.feedback(payment["metadata"]["signet_session_id"], "fraud", "chargeback")

Label a dispute only when you believe the card was stolen.

Limits

  • Signet does not see the card or change what Stripe does. Leave Stripe’s own checks on.
  • Evidence needs earlier payments that Signet assessed. For Visa’s window, turn on the 400-day ledger.

Checked against Stripe’s payment, dispute and metadata documentation on November 24, 2026.