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

Do not consume IAPs when backend returns 4xx errors #1699

Merged
merged 2 commits into from
May 20, 2024

Conversation

tonidero
Copy link
Contributor

@tonidero tonidero commented May 9, 2024

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

@RevenueCat-Danger-Bot
Copy link

RevenueCat-Danger-Bot commented May 9, 2024

1 Message
📖 Size increase: 0.13 KB

Generated by 🚫 Danger

@tonidero tonidero marked this pull request as ready for review May 9, 2024 09:22
@tonidero tonidero requested a review from a team May 9, 2024 09:22
Copy link

codecov bot commented May 9, 2024

Codecov Report

Attention: Patch coverage is 77.14286% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 83.12%. Comparing base (7a4dbdc) to head (ff8be45).

Current head ff8be45 differs from pull request most recent head 24be329

Please upload reports for the commit 24be329 to get more accurate results.

Files Patch % Lines
...tlin/com/revenuecat/purchases/PostReceiptHelper.kt 75.00% 0 Missing and 4 partials ⚠️
...purchases/common/networking/PostReceiptResponse.kt 69.23% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1699      +/-   ##
==========================================
+ Coverage   83.07%   83.12%   +0.05%     
==========================================
  Files         222      222              
  Lines        7581     7574       -7     
  Branches     1073     1070       -3     
==========================================
- Hits         6298     6296       -2     
+ Misses        857      854       -3     
+ Partials      426      424       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Base automatically changed from rev-83-update-android-sdk-to-not-consume-in-app-purchase-when-the to main May 17, 2024 15:32
@tonidero tonidero force-pushed the sdk-3441-do-not-consume-iaps-on-4xx-backend-errors branch from ff8be45 to 24be329 Compare May 20, 2024 16:17
@tonidero tonidero enabled auto-merge (squash) May 20, 2024 16:17
@tonidero tonidero merged commit fcb6c4c into main May 20, 2024
7 checks passed
@tonidero tonidero deleted the sdk-3441-do-not-consume-iaps-on-4xx-backend-errors branch May 20, 2024 16:46
This was referenced May 29, 2024
vegaro pushed a commit that referenced this pull request May 30, 2024
**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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants