-
Notifications
You must be signed in to change notification settings - Fork 52
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
Support non consumable products #1697
Support non consumable products #1697
Conversation
Generated by 🚫 Danger |
9d9c9bb
to
c5faffb
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1697 +/- ##
==========================================
- Coverage 83.17% 83.12% -0.06%
==========================================
Files 221 222 +1
Lines 7555 7574 +19
Branches 1064 1070 +6
==========================================
+ Hits 6284 6296 +12
- Misses 851 854 +3
- Partials 420 424 +4 ☔ View full report in Codecov by Sentry. |
Backend has been merged. Would appreciate another review for this! |
} | ||
|
||
@Test | ||
fun `postTransactionAndConsumeIfNeeded tries to consume products if product data not available`() { |
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.
👍
const val NOT_CONSUMING_IN_APP_PURCHASE_ACCORDING_TO_BACKEND = "Not consuming in-app purchase according to" + | ||
" server configuration." |
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.
let's expand on the implications or maybe add a link to docs
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.
Don't have docs yet, but once we add it I will update this with that. Will update it briefly mentioning the consecuences though.
purchases/src/main/kotlin/com/revenuecat/purchases/strings/PurchaseStrings.kt
Outdated
Show resolved
Hide resolved
…chaseStrings.kt Co-authored-by: JayShortway <29483617+JayShortway@users.noreply.github.com>
### Description As part of the efforts to support non-consumables in android, we talked about not consuming IAPs when the backend returns a 4xx error. This should be an uncommon case but we don't want to miss the data in that case. This depends on the changes to support non-consumables in #1697
### Description Integration tests are failing on main due to the changes in #1697. This fixes those
After #1697 , we stopped consuming non-consumables if the backend indicates to not consume them. Non-consumables still need to be acknowledged, otherwise they get refunded, this PR fixes that. For reference, https://developer.android.com/google/play/billing/integrate#non-consumable-products
**This is an automatic release.** ### New Features * Support non consumable products (#1697) via Toni Rico (@tonidero) ### Bugfixes * Fix non-consumables not getting acknowledged (#1709) via Cesar de la Vega (@vegaro) * Fix bad copy in log message (#1702) via Andy Boedo (@aboedo) ### Dependency Updates * Bump amazon SDK version to 3.0.5 (#1713) via Mark Villacampa (@MarkVillacampa) * Bump rexml from 3.2.6 to 3.2.8 (#1701) via dependabot[bot] (@dependabot[bot]) * Bump fastlane-plugin-revenuecat_internal from `dd5e21f` to `8ec0072` (#1696) via dependabot[bot] (@dependabot[bot]) ### Other Changes * Fix offline integration tests (#1704) via Toni Rico (@tonidero) * Do not consume IAPs when backend returns 4xx errors (#1699) via Toni Rico (@tonidero) * Update fastlane plugin and fix docs index path (#1695) via Toni Rico (@tonidero) * Add trigger_bump lane (#1692) via Cesar de la Vega (@vegaro) Co-authored-by: revenuecat-ops <ops@revenuecat.com>
Description
This brings support to non-consumables in android. The backend will let us know whether we need to consume a product after posting it or not.