> ## Documentation Index
> Fetch the complete documentation index at: https://docs.khanhng.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AD-007 Test Payments and Idempotency

## Context

An activity can replay after a transient failure, and webhook events can arrive more than once.

## Decision

Use Stripe test mode, issue refunds only after human approval, use the claim ID as the idempotency key, and verify Stripe webhook signatures before updating claim status.

**Status:** Approved design.

## Alternatives

\[OWNER INPUT REQUIRED: alternatives considered in the design review.]

## Consequences

The showcase validates the refund lifecycle without asserting production payment availability.

Webhook secrets must be provisioned securely. Duplicate activity execution must return the original refund rather than create another.

## Date and evidence

Decision date: \[OWNER INPUT REQUIRED: decision date].

Evidence: repository `GUIDE.md`, sections 16, 23, and 24.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.