Package com.apple.itunes.storekit.offers
Class IntroductoryOfferEligibilitySignatureCreator
java.lang.Object
com.apple.itunes.storekit.signature.JWSSignatureCreator
com.apple.itunes.storekit.offers.IntroductoryOfferEligibilitySignatureCreator
-
Constructor Summary
ConstructorsConstructorDescriptionIntroductoryOfferEligibilitySignatureCreator(String signingKey, String keyId, String issuerId, String bundleId) Create an IntroductoryOfferEligibilitySignatureCreator -
Method Summary
Modifier and TypeMethodDescriptioncreateSignature(String productId, boolean allowIntroductoryOffer, String transactionId) Create an introductory offer eligibility signature.Methods inherited from class com.apple.itunes.storekit.signature.JWSSignatureCreator
createNonce, createSignature
-
Constructor Details
-
IntroductoryOfferEligibilitySignatureCreator
public IntroductoryOfferEligibilitySignatureCreator(String signingKey, String keyId, String issuerId, String bundleId) Create an IntroductoryOfferEligibilitySignatureCreator- Parameters:
signingKey- Your private key downloaded from App Store ConnectkeyId- Your private key ID from App Store ConnectissuerId- Your issuer ID from the Keys page in App Store ConnectbundleId- Your app's bundle ID
-
-
Method Details
-
createSignature
public String createSignature(String productId, boolean allowIntroductoryOffer, String transactionId) Create an introductory offer eligibility signature.- Parameters:
productId- The unique identifier of the productallowIntroductoryOffer- A boolean value that determines whether the customer is eligible for an introductory offertransactionId- 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.- Returns:
- The signed JWS
- See Also:
-