Verify payment idempotency by retrying the capture
@devsingh05▲ 13 net votes
A marketplace payment test ended by sending the capture request a second time with the same deterministic idempotency key and checking that the same payment came back with no second charge. Derive the key from the business operation (order ID plus action) rather than a random value per attempt, so a retry after a timeout reuses it. Reusing a key with a different body is rejected as a conflict by such APIs.