From ea5e8884e775be71a265db16f9c84d5110b293bf Mon Sep 17 00:00:00 2001 From: geoffwhittington Date: Sun, 29 Oct 2023 21:58:30 -0400 Subject: [PATCH 1/2] Update idempotency.md --- docs/reference/idempotency.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/reference/idempotency.md b/docs/reference/idempotency.md index b4dd765..0b3262a 100644 --- a/docs/reference/idempotency.md +++ b/docs/reference/idempotency.md @@ -40,3 +40,6 @@ By incorporating the `idempotencyKey` with specific game and item IDs: * Players purchases are singular. Any effort to replicate the transaction will fail. * Should any interruptions occur during the buying process, like server outages or communication failures, the transaction can be re-validated without the threat of repeated charges. + +::: info +Since the `idempotencyKey` is global among all payments, developers should consider incorporating the `destination` address when appropriate. In the example above, this would be `E8otxw1CVX9bfyddKu3ZB3BVLa4VVF9J7CTPdnUwT9jR-${game.id}-${item.id}` From 24f3fbb6e50776e819186cc66f63665945d723e5 Mon Sep 17 00:00:00 2001 From: geoffwhittington Date: Sun, 29 Oct 2023 22:25:39 -0400 Subject: [PATCH 2/2] Update idempotency.md --- docs/reference/idempotency.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/idempotency.md b/docs/reference/idempotency.md index 0b3262a..e8fae9e 100644 --- a/docs/reference/idempotency.md +++ b/docs/reference/idempotency.md @@ -42,4 +42,4 @@ By incorporating the `idempotencyKey` with specific game and item IDs: * Should any interruptions occur during the buying process, like server outages or communication failures, the transaction can be re-validated without the threat of repeated charges. ::: info -Since the `idempotencyKey` is global among all payments, developers should consider incorporating the `destination` address when appropriate. In the example above, this would be `E8otxw1CVX9bfyddKu3ZB3BVLa4VVF9J7CTPdnUwT9jR-${game.id}-${item.id}` +Since the `idempotencyKey` is global among all payments, developers should consider incorporating a unique value to further differentiate a payment. For example, use `destination` address when appropriate or also include a developer-specific random GUID.