Skip to content

iap-skill: adopt D2C reviewer additions from muse-skills2 (and drop redundant README)#28

Open
GabrielBelmonteUnity wants to merge 3 commits into
mainfrom
feat/iap-skill-d2c-reviewer-additions
Open

iap-skill: adopt D2C reviewer additions from muse-skills2 (and drop redundant README)#28
GabrielBelmonteUnity wants to merge 3 commits into
mainfrom
feat/iap-skill-d2c-reviewer-additions

Conversation

@GabrielBelmonteUnity

Copy link
Copy Markdown
Collaborator

Summary

Backport two review-driven changes from the internal muse-skills repo (Charles Yeh, commits 5650d10 + 1056725) that improve the D2C guidance in path-implement-iap-d2c.md, plus drop the now-redundant top-level README.md.

path-implement-iap-d2c.md

  • Add "Payment provider services on the StoreController" subsection with a table mapping the two StoreController extended-service properties to their interfaces and the members used later in the doc. This front-loads the property naming asymmetry (PaymentProviderStoreExtendedService singular vs PaymentProvidersExtendedPurchaseService plural) so downstream code samples make sense.
  • Switch three code samples (GetEligiblePaymentProviders gating, Buy, RedirectToWebshop) from ?. null-conditional to the verbose var svc = ...; if (svc == null) { ... } pattern so the sample fails loudly instead of silently no-op'ing when the service isn't available on the current platform.
  • Cross-reference the new section from the Checkout presentation mode bullet.

README.md

Dropped — SKILL.md is the primary skill entry point and README duplicated content that was better maintained in SKILL.md and the reference files. Matches the muse-skills2 tree, which removed it in the same review pass.

Test plan

  • Re-read path-implement-iap-d2c.md end-to-end; verify the new subsection anchor resolves and the three converted code samples still make sense in context.
  • Confirm no other file in the skill (or elsewhere in the repo) links to implement-in-app-purchases/README.md.

🤖 Generated with Claude Code

…dundant README

Backport two review-driven changes from the internal muse-skills repo (Charles Yeh, commits 5650d10 + 1056725) that improve the D2C guidance:

- path-implement-iap-d2c.md: add "Payment provider services on the StoreController" subsection with a table mapping the two StoreController properties to their extended-service interfaces and members used later in the doc. Also switch three code samples (GetEligiblePaymentProviders, Buy, RedirectToWebshop) to the verbose `var svc = ...; if (svc == null) { ... }` null-check pattern so the sample fails loudly instead of silently no-op'ing via `?.`, and cross-reference the new section from the Checkout presentation mode bullet.
- README.md: drop as redundant with SKILL.md (matches muse-skills2 which removed it in the same review pass).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@GabrielBelmonteUnity GabrielBelmonteUnity requested a review from a team as a code owner July 8, 2026 19:42
GabrielBelmonteUnity and others added 2 commits July 8, 2026 16:05
The `modes: [agent, ask]` frontmatter field is no longer required by the skill loader. Drop it to match the internal muse-skills copy and the com.unity.purchasing package copy.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…nity.purchasing PR #1843)

1. **The "null on unsupported platforms" claim was wrong.** For a StoreController scoped to PaymentProvider.Name the factory always populates both PaymentProviderStoreExtendedService and PaymentProvidersExtendedPurchaseService — they only come back null when the controller is scoped to a different store (Apple / Google). Reword the intro paragraph to describe the real null case, and revert the three verbose `var svc = ...; if (svc == null) { return; }` samples back to `?.` null-conditional.

2. **RedirectToWebshop uses a separate presentation-mode setter.** SetWebshopPresentationMode is independent of SetCheckoutPresentationMode. Add SetWebshopPresentationMode to the property table and a new "Webshop presentation mode" bullet under Purchase Handling notes.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.

1 participant