Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README with description for legacy app receipt #164

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Tsuyoshi-Ishikawa
Copy link

I understood that ReceiptUtility is for legacy app receipt from this issue and comment.
#84 (comment)

So I think it is recommend to be written at README.
That's why I modified README.

Please review it!

@alexanderjordanbaker
Copy link
Collaborator

@Tsuyoshi-Ishikawa is the confusion that the word "Receipt" only applies to Original StoreKit? StoreKit 2 only has transactions, no receipts

@Tsuyoshi-Ishikawa
Copy link
Author

@alexanderjordanbaker

is the confusion that the word "Receipt" only applies to Original StoreKit?

I am not an iOS developer, but a node(backend) developer who not be familiar with iOS development.
So I took my time because I mistakenly thought that Receipt would also work with Storekit2.

@@ -76,7 +76,8 @@ const verifiedNotification = await verifier.verifyAndDecodeNotification(notifica
console.log(verifiedNotification)
```

### Receipt Usage
### Receipt Usage (For Legacy App Receipts)
If you use an App Receipt from [Original StoreKit](https://developer.apple.com/documentation/storekit/in-app_purchase/original_api_for_in-app_purchase/validating_receipts_with_the_app_store), you can utilize `ReceiptUtility` to verify the legacy receipt.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Help with running this

@Tsuyoshi-Ishikawa
Copy link
Author

@alexanderjordanbaker
Could you merge this Pull Request?

If there is something that needs to be corrected, please let me know.

@alexanderjordanbaker
Copy link
Collaborator

@Tsuyoshi-Ishikawa
Could we please use the following text
"Your app gets legacy receipts (App Store Receipts) if it uses the Original API for In-App Purchase. Use the ReceiptUtility class to extract a transaction ID from a legacy receipt, and use the transaction ID when you call the App Store Server API."

@Tsuyoshi-Ishikawa
Copy link
Author

Tsuyoshi-Ishikawa commented Aug 23, 2024

@Tsuyoshi-Ishikawa Could we please use the following text "Your app gets legacy receipts (App Store Receipts) if it uses the Original API for In-App Purchase. Use the ReceiptUtility class to extract a transaction ID from a legacy receipt, and use the transaction ID when you call the App Store Server API."

@alexanderjordanbaker
Thank you.
Yes, It's OK!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants