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

fixes subscription upgrade/downgrade #1438

Merged
merged 5 commits into from
Jul 30, 2021

Conversation

andresesfm
Copy link
Contributor

@andresesfm andresesfm commented Jul 28, 2021

androidOldSku is no longer required for subscription changes. The parameter was being mixed up with the purchase token. I attempted to deprecate it but since it was a required field before. Many clients would have to set it to null. The cleanest way to deal with it is to mark it as a breaking change and move on

@andresesfm andresesfm requested a review from hyochan July 29, 2021 17:31
Copy link
Owner

@hyochan hyochan left a comment

Choose a reason for hiding this comment

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

Thanks for being a saviour once again!

@hyochan hyochan added 🎯 feature New feature 🛠 bugfix All kinds of bug fixes 🤖 android Related to android and removed 🎯 feature New feature labels Jul 30, 2021
@hyochan hyochan merged commit 0763c81 into hyochan:master Jul 30, 2021
@@ -87,7 +87,6 @@ public void getPurchaseHistoryByType(final String type, final Promise promise) {
public void buyItemByType(
final String type,
final String sku,
final String oldSku,
Copy link
Contributor

Choose a reason for hiding this comment

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

Dropping this without updating the TypeScript call site (https://github.com/dooboolab/react-native-iap/blob/master/src/iap.ts#L320) leads to an immediate crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 android Related to android 🛠 bugfix All kinds of bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants