@apple/app-store-server-library
    Preparing search index...

    Class PromotionalOfferSignatureCreator

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Create a promotional offer signature

      Generating a signature for promotional offers

      Parameters

      • productIdentifier: string

        The subscription product identifier

      • subscriptionOfferID: string

        The subscription discount identifier

      • appAccountToken: string

        An optional string value that you define; may be an empty string

      • nonce: string

        A one-time UUID value that your server generates. Generate a new nonce for every signature.

      • timestamp: number

        A timestamp your server generates in UNIX time format, in milliseconds. The timestamp keeps the offer active for 24 hours.

      Returns string

      The Base64 encoded signature