-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
feat: Added missing info to IAP transaction and product structures #31739
feat: Added missing info to IAP transaction and product structures #31739
Conversation
💖 Thanks for opening this pull request! 💖 We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix. Examples of commit messages with semantic prefixes:
Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
Would love to get this backported to |
hey @kevinlinv! thanks for this - we'll start the review process as soon as we can! |
7888617
to
164e122
Compare
This comment has been minimized.
This comment has been minimized.
32ff659
to
24420a2
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
24420a2
to
cd8844b
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API LGTM
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
cd8844b
to
9a54f2a
Compare
@nornagon thank you for the review! 🙌 Quick summary of changes applied after your feedback:
PTAL again 🙂 |
b8f6d1e
to
1390c3c
Compare
@nornagon thank you for the quick feedback loop. Apologies for the slowness, I am do not have the setup locally and not well versed with the syntax 😅 |
3899cb3
to
6eb849e
Compare
Changing backport labels because we don't backport new features to stable branches without @electron/wg-releases approval. |
Congrats on merging your first pull request! 🎉🎉🎉 |
Release Notes Persisted
|
I have automatically backported this PR to "17-x-y", please check out #32602 |
Description of Change
The In-app purchase is a module that allows us to communicate with Apple's Mac App Store by using Store Kit. It allows us to get product information to be displayed to users and make purchases if users choose to do so.
There are a few missing fields in the data structures used for in-app purchase, specifically subscription information on
Product
and payment discount information onTransaction
. Referencable from:Product
: https://developer.apple.com/documentation/storekit/skproductTransaction
: https://developer.apple.com/documentation/storekit/skpaymenttransactionpayment
: https://developer.apple.com/documentation/storekit/skpaymentThis PR register those missing fields to the structure definition, get and convert the data to be returned.
Resolves #31738.
This is the first time I've ever coded in C++ or Objective-C I mostly followed prior PR: #25058. I would be happy for maintainers to take it over if it would get the PR move along faster.
Also, I wasn't able to get electron build locally (running to errors when using build-tools), is there any way for me to get a build of electron for mac from CI so that I could test the in-app purchase?The artifacts seem to be uploaded in CI, given that I can pass the build that is.Checklist
Release Notes
Notes: feat: Added missing info to in-app purchase's
transaction
andproduct
structures