@bates-solutions/payments-core API Reference - v0.2.0
    Preparing search index...

    Function createIdempotencyKey

    • Create a random idempotency key: a version 4 UUID from WebCrypto's randomUUID, so it runs on Node 22+, Deno, Bun and Workers.

      Returns string

      A UUID string

      const key = createIdempotencyKey();
      // "550e8400-e29b-41d4-a716-446655440000"