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

    Class PromotionalOfferV2SignatureCreator

    Hierarchy

    • BaseSignatureCreator
      • PromotionalOfferV2SignatureCreator
    Index

    Constructors

    • Create a PromotionalOfferV2SignatureCreator

      Parameters

      • signingKey: string

        Your private key downloaded from App Store Connect

      • keyId: string

        Your private key ID from App Store Connect

      • issuerId: string

        Your issuer ID from the Keys page in App Store Connect

      • bundleId: string

        Your app's bundle ID

      Returns PromotionalOfferV2SignatureCreator

    Methods

    • Create a promotional offer V2 signature.

      Parameters

      • productId: string

        The unique identifier of the product

      • offerIdentifier: string

        The promotional offer identifier that you set up in App Store Connect

      • transactionId: string | undefined = undefined

        The unique identifier of any transaction that belongs to the customer. You can use the customer's appTransactionId, even for customers who haven't made any In-App Purchases in your app. This field is optional, but recommended.

      Returns string

      The signed JWS. Generating JWS to sign App Store requests

    • Parameters

      • featureSpecificClaims: { [key: string]: any }

      Returns string