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

[EXTERNAL] Fixes Amazon subscription period parsing (#1813) by @tessmerandre #1828

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

tonidero
Copy link
Contributor

@tonidero tonidero commented Aug 30, 2024

Checklist

  • If applicable, unit tests
  • If applicable, create follow-up issues for purchases-ios and hybrids

Motivation

Amazon subscription periods were being incorrectly parsed.

https://developer.amazon.com/docs/in-app-purchasing/iap-implement-iap.html#successful-request

Resolves #1771

Description

Amazon returns annual and semiannual subscription periods as Annual and SemiAnnual. Please look at the
docs for more information.

Contributed by @tessmerandre

### Checklist
- [x] If applicable, unit tests
- [x] If applicable, create follow-up issues for `purchases-ios` and
hybrids

### Motivation
<!-- Why is this change required? What problem does it solve? -->
Amazon subscription periods were being incorrectly parsed.

https://developer.amazon.com/docs/in-app-purchasing/iap-implement-iap.html#successful-request

<!-- Please link to issues following this format: Resolves #999999 -->
Resolves #1771

### Description
Amazon returns annual and semiannual subscription periods as `Annual`
and `SemiAnnual`. Please look at the
[docs](https://developer.amazon.com/docs/in-app-purchasing/iap-implement-iap.html#successful-request)
for more information.
@tonidero tonidero added the pr:fix A bug fix label Aug 30, 2024
@tonidero tonidero requested a review from a team August 30, 2024 08:04
Copy link

codecov bot commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@tonidero tonidero merged commit 48957cd into main Aug 30, 2024
8 checks passed
@tonidero tonidero deleted the external/tessmerandre/fix-amazon-period-parsing branch August 30, 2024 10:32
tonidero pushed a commit that referenced this pull request Sep 5, 2024
**This is an automatic release.**

### Bugfixes
* [EXTERNAL] Fixes Amazon subscription period parsing (#1813) by
@tessmerandre (#1828) via Toni Rico (@tonidero)
### Other Changes
* [Diagnostics] Send backend_error_code in http request failures if
available (#1825) via Toni Rico (@tonidero)

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
pr:fix A bug fix
Projects
None yet
3 participants