PayFanout API reference
    Preparing search index...

    Function parseRenewalIdempotencyKey

    • Reads a renewal idempotency key back into the subscription, period and attempt it names, or undefined for any other key. For PSPs that store no metadata but echo the key (Paysafe's merchantRefNum is the key), this is how a payment webhook finds the subscription to settle.

      Parameters

      • key: string

      Returns { attempt: number; periodEnd: string; subscriptionId: string } | undefined