-
Notifications
You must be signed in to change notification settings - Fork 212
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(auth): update capability service to query App Store purchases #12724
Conversation
Just need to add new tests. @bbangert if you're available to start looking at the source code changes sooner, that'd be great. |
b021e6a
to
5f15592
Compare
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.
I added a few specific questions/comments inline for the review.
5f15592
to
f3c4f29
Compare
f3c4f29
to
74dfff6
Compare
74dfff6
to
319168a
Compare
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.
LGTM! Nice job!
319168a
to
d437783
Compare
Thanks; I tried to sneak in a fix for mismatched property names on |
Because: * We want to include any Apple IAP subscriptions along with other subscriptions when requested by RPs. * We want to broadcast any Apple IAP subscription state changes to RPs. This commit: * Modifies existing Stripe helper methods, priceToPlaySkus --> priceToIapIdentifiers and purchasesToPriceIds --> iapPurchasesToPriceIds, to determine which App Store productIds map to which Stripe priceIds. * Creates new capability service method fetchSubcribedPricesFromAppStore and modifies playStoreUpdate --> iapUpdate. * Adds a feature flag for the Apple App Store API and conditionally initializes the AppleIAP module based on the flag in key_server.js. * Renames SubscriptionPurchase classes for Google IAP and Apple IAP to PlayStoreSubscriptionPurchase and AppStoreSubscriptionPurchase, respectively. * [BONUS] Fixes a bug in the AppStoreHelper constructor method where only the first underscore was being replaced with a period in the config bundleId transform. * [BONUS] Fixes some typos in PlanConfig properties for Google and Apple IAP plan metadata keys. Closes #10386
d437783
to
7da4966
Compare
Because:
This commit:
Closes #10386
Checklist
Put an
x
in the boxes that apply