Alacriti interview question

How would you implement idempotency in a payment system?