Class PromotionalOfferV2SignatureCreator

java.lang.Object
com.apple.itunes.storekit.signature.JWSSignatureCreator
com.apple.itunes.storekit.offers.PromotionalOfferV2SignatureCreator

public class PromotionalOfferV2SignatureCreator extends JWSSignatureCreator
  • Constructor Details

    • PromotionalOfferV2SignatureCreator

      public PromotionalOfferV2SignatureCreator(String signingKey, String keyId, String issuerId, String bundleId)
      Create a PromotionalOfferV2SignatureCreator
      Parameters:
      signingKey - Your private key downloaded from App Store Connect
      keyId - Your private key ID from App Store Connect
      issuerId - Your issuer ID from the Keys page in App Store Connect
      bundleId - Your app's bundle ID
  • Method Details

    • createSignature

      public String createSignature(String productId, String offerIdentifier, String transactionId)
      Create a promotional offer V2 signature.
      Parameters:
      productId - The unique identifier of the product
      offerIdentifier - The promotional offer identifier that you set up in App Store Connect.
      transactionId - 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:
      The signed JWS
      See Also: