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

Fix purchaseSubscriptionOption not accepting oldProductIdentifier #764

Merged

Conversation

tonidero
Copy link
Contributor

@tonidero tonidero commented Nov 2, 2023

As reported in #763, we were using the oldSKU for google upgrades but the typescript interface only accepts oldProductIdentifier in the purchaseSubscriptionOption method. This makes sure all purchase methods have the same logic. Note that purchaseSubscriptionOption didn't exist before V5, but since some developers might have worked around the issue by using oldSKU, I think it's better to support that and avoid breaking their fixes.

@tonidero tonidero added the pr:fix A bug fix label Nov 2, 2023
@tonidero tonidero marked this pull request as ready for review November 2, 2023 08:34
@tonidero tonidero requested a review from a team November 2, 2023 08:34
Copy link
Member

@joshdholtz joshdholtz left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for fixing 🙏

@tonidero tonidero merged commit 02e9b02 into main Nov 2, 2023
4 checks passed
@tonidero tonidero deleted the fix-purchase-subscription-option-not-accepting-new-field branch November 2, 2023 08:48
NachoSoto pushed a commit that referenced this pull request Nov 8, 2023
**This is an automatic release.**

### Bugfixes
* Fix purchaseSubscriptionOption not accepting oldProductIdentifier
(#764) via Toni Rico (@tonidero)
### Dependency Updates
* [AUTOMATIC BUMP] Updates purchases-hybrid-common to 7.3.0 (#765) via
RevenueCat Git Bot (@RCGitBot)
* [Android
7.2.0](https://github.com/RevenueCat/purchases-android/releases/tag/7.2.0)
* [Android
7.1.1](https://github.com/RevenueCat/purchases-android/releases/tag/7.1.1)
* [Android
7.1.0](https://github.com/RevenueCat/purchases-android/releases/tag/7.1.0)
* [Android
7.1.0-beta.2](https://github.com/RevenueCat/purchases-android/releases/tag/7.1.0-beta.2)
* [Android
7.1.0-beta.1](https://github.com/RevenueCat/purchases-android/releases/tag/7.1.0-beta.1)
* [iOS
4.30.2](https://github.com/RevenueCat/purchases-ios/releases/tag/4.30.2)
* [iOS
4.30.1](https://github.com/RevenueCat/purchases-ios/releases/tag/4.30.1)
* [iOS
4.30.0](https://github.com/RevenueCat/purchases-ios/releases/tag/4.30.0)

---------

Co-authored-by: RevenueCat CI <dev+ci@revenuecat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:fix A bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants