Skip to content

Commit 26ded96

Browse files
Correct PromotionalOfferSignatureCreator example
1 parent d42a306 commit 26ded96

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,11 @@ const encodedKey = readFile(filePath) // Specific implementation may vary
117117
const productId = "<product_id>"
118118
const subscriptionOfferId = "<subscription_offer_id>"
119119
const applicationUsername = "<application_username>"
120+
const nonce = "<nonce>"
121+
const timestamp = Date.now()
120122
const signatureCreator = new PromotionalOfferSignatureCreator(encodedKey, keyId, bundleId)
121123

122-
const signature = signatureCreator.createSignature(productId, subscriptionOfferId, signatureCreator)
124+
const signature = signatureCreator.createSignature(productId, subscriptionOfferId, applicationUsername, nonce, timestamp)
123125
console.log(signature)
124126
```
125127

0 commit comments

Comments
 (0)