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

iOS Subscription Error: Invalid Receipt - StoreKit Issue #1170

Open
7 of 11 tasks
arundevops47 opened this issue Sep 22, 2024 · 3 comments
Open
7 of 11 tasks

iOS Subscription Error: Invalid Receipt - StoreKit Issue #1170

arundevops47 opened this issue Sep 22, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@arundevops47
Copy link

arundevops47 commented Sep 22, 2024

I have integrated RevenueCat for in-app subscriptions and it works correctly on Android. However, I am encountering an issue on iOS where the app returns an error related to an invalid receipt during the subscription process.

Previously, the subscription worked fine on iOS, but today it started showing the following error:

Environment

  • Output of flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.3, on macOS 14.4.1 23E224 darwin-x64, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.93.1)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

  • Version of purchases-flutter

  • ^6.30.2

  • Testing device version e.g.: iOS 15.5, Android API 30, etc.

  • iOS 17

  • How often the issue occurs- every one of your customers is impacted? Only in dev?

  • Tested only in development.

  • Debug logs that reproduce the issue

  • Steps to reproduce, with a description of expected vs. actual behavior

  • Set up RevenueCat for in-app subscriptions.

  • Test the subscription process on an iOS device.

  • Attempt to purchase a subscription.

  • Observe the error message.

Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)

Describe the bug

flutter: Error: PlatformException(8, The receipt is not valid. The purchased product was missing in the receipt. This is typically due to a bug in StoreKit., {userCancelled: false, underlyingErrorMessage: The purchased product was missing in the receipt. This is typically due to a bug in StoreKit., readable_error_code: INVALID_RECEIPT, message: The receipt is not valid. The purchased product was missing in the receipt. This is typically due to a bug in StoreKit., readableErrorCode: INVALID_RECEIPT, code: 8}, null)
flutter: Platform Exception: The receipt is not valid. The purchased product was missing in the receipt. This is typically due to a bug in StoreKit.

Additional Information

  • No issues are occurring on Android.
  • The issue started today without any changes to the subscription logic.
  • The error message suggests a problem related to StoreKit and receipt validation on iOS.
@arundevops47 arundevops47 added the bug Something isn't working label Sep 22, 2024
@RCGitBot
Copy link
Contributor

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

@nyeu
Copy link

nyeu commented Sep 25, 2024

Hi @arundevops47,
Is it something that happens constantly or only a hiccup? Since it happened only in sandbox it could be a temporary issue on Apple servers.

@arundevops47
Copy link
Author

arundevops47 commented Sep 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants