Skip to content

Conversation

@iamgabrielma
Copy link
Contributor

@iamgabrielma iamgabrielma commented Sep 15, 2025

Closes WOOMOB-1290

Description

This PR gets rid of the In-App Purchases implementation, as well as partially of the usage of Plan/Domain upgrades through onboarding flow, since some bits of this flow was also using IAP internals. Confirmed with Kiwi that is no longer needed here: p1757921125873789-slack-C03L1NF1EA3, but still needs some extra task to remove the remains that are not coupled, which can be done separately.

There has been no IAP purchases (merchants were not able to purchase since the feature was disabled) or renewals (existing purchases could still be renewed via the app) since April 5th, 2024, so we should be good to remove it. Android counterpart was done in January: pdfdoF-6aJ-p2

Testing information

  • App should run normally
  • CI should pass

@iamgabrielma iamgabrielma added type: task An internally driven task. type: technical debt Represents or solves tech debt of the project. labels Sep 15, 2025
@iamgabrielma iamgabrielma added this to the 23.3 milestone Sep 15, 2025
@dangermattic
Copy link
Collaborator

dangermattic commented Sep 15, 2025

1 Warning
⚠️ This PR is larger than 300 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.
1 Message
📖

This PR contains changes to Tracks-related logic. Please ensure (author and reviewer) the following are completed:

  • The tracks events must be validated in the Tracks system.
  • Verify the internal Tracks spreadsheet has also been updated.
  • Please consider registering any new events.
  • The PR must be assigned the category: tracks label.

Generated by 🚫 Danger


/// WPCOM Payment Endpoints
///
// periphery:ignore
Copy link
Contributor Author

@iamgabrielma iamgabrielma Sep 15, 2025

Choose a reason for hiding this comment

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

Temporary periphery ignores so I don't have to update PaymentRemote, is possible that we can remove these as well as part of 12401-gh continuation, since are related to domain purchases.

@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Sep 15, 2025

App Icon📲 You can test the changes from this Pull Request in WooCommerce iOS Prototype by scanning the QR code below to install the corresponding build.

App NameWooCommerce iOS Prototype
Build Numberpr16128-20a4859
Version23.5
Bundle IDcom.automattic.alpha.woocommerce
Commit20a4859
Installation URL5sb7ii6vur6e0
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@iamgabrielma iamgabrielma added the category: tracks Related to analytics, including Tracks Events. label Sep 15, 2025
@iamgabrielma iamgabrielma marked this pull request as ready for review September 15, 2025 11:56
@iamgabrielma
Copy link
Contributor Author

@itsmeichigo looping you in as well for awareness

switch rawValue {
case "woo_notification_store_creation_ready":
self = .storeCreationCompleteNotification
case "woo_hardcoded_plan_upgrade_details_milestone_1_are_accurate":
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We'll also have to clean the flag from https://public-api.wordpress.com/wpcom/v2/mobile/feature-flags. I haven't tackled this as part of the PR.

@iamgabrielma
Copy link
Contributor Author

👋 @joshheald Feel free to ignore this review during HACK week and team meetup, I'll move the milestone before I forget.

@iamgabrielma iamgabrielma modified the milestones: 23.3, 23.4 Sep 17, 2025
iamgabrielma and others added 2 commits September 17, 2025 12:55
# Conflicts:
#	WooCommerce/Classes/ViewRelated/Dashboard/Free Trial/StorePlanBannerPresenter.swift
#	WooCommerce/Classes/ViewRelated/Upgrades/CurrentPlanDetailsView.swift
#	WooCommerce/Classes/ViewRelated/Upgrades/UpgradeWaitingView.swift
#	WooCommerce/WooCommerce.xcodeproj/project.pbxproj
@iamgabrielma
Copy link
Contributor Author

Additionally there are 2 subscription groups (9 subscriptions total, production and test) that we can remove from ASC, as well as the 2 .storekit config files from the Woo target. I'll clean these after we've wrapped this one up.

@iamgabrielma iamgabrielma modified the milestones: 23.4, 23.5 Oct 3, 2025
@joshheald
Copy link
Contributor

I've not forgotten about this, will get to it in the next day or two

@joshheald
Copy link
Contributor

Additionally there are 2 subscription groups (9 subscriptions total, production and test) that we can remove from ASC, as well as the 2 .storekit config files from the Woo target. I'll clean these after we've wrapped this one up.

I don't think you can ever remove approved subscriptions from ASC, just mark them as not available for sale, which should be done already

Copy link
Contributor

@joshheald joshheald left a comment

Choose a reason for hiding this comment

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

Well done. Always good to see a summer's worth of work deleted 😂

There may be some stuff you can remove from PaymentAction/Store... worth checking with Kiwi whether we actually do the check for whether it's a free trial or not and show publishing stuff as part of the onboarding. It smells like Woo Express code to me. Another PR might be best though

# Conflicts:
#	WooCommerce/WooCommerce.xcodeproj/project.pbxproj
@iamgabrielma
Copy link
Contributor Author

Thanks for the review!

Always good to see a summer's worth of work deleted 😂

😂

There may be some stuff you can remove from PaymentAction/Store... worth checking with Kiwi whether we actually do the check for whether it's a free trial or not and show publishing stuff as part of the onboarding. It smells like Woo Express code to me. Another PR might be best though

Yes, there are still bits of IAP/WooExpress/Domains here and there that wasn't coupled with the rest of IAP, I'll clean up the other bits on a separate PR so this one doesn't get even bigger.

@wpmobilebot wpmobilebot modified the milestones: 23.5, 23.6 Oct 17, 2025
@wpmobilebot
Copy link
Collaborator

Version 23.5 has now entered code-freeze, so the milestone of this PR has been updated to 23.6.

Does not compile after modularization due to error: Build input files cannot be found. 4 files still appear referenced in the woo target build phase despite being deleted, so I’ve removed them manually.
@iamgabrielma iamgabrielma merged commit 2474539 into trunk Oct 17, 2025
13 checks passed
@iamgabrielma iamgabrielma deleted the task/WOOMOB-1290-remove-IAP-usage branch October 17, 2025 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: tracks Related to analytics, including Tracks Events. type: task An internally driven task. type: technical debt Represents or solves tech debt of the project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants