Repository: flutter
Issue: Google IAP: Re-subscribing after subscription cancellation on Google Play results in error "BillingResponse.developerError, details: Account identifiers don't match the previous subscription."
Labels: waiting for customer response,in triage

### Steps to reproduce

User purchases a subscription product using Google IAP via the app.

User then cancels the subscription directly on Google Play.

The subscription remains active until the end of the current billing cycle but is marked as canceled for future renewals.

The user opens the app and tries to re-subscribe to the same product using the buyNonConsumable method provided by the in_app_purchase Flutter plugin.

The app receives an error message: "BillingResponse.developerError, details: Account identifiers don't match the previous subscription."

### Expected results

The user should be able to re-subscribe or restore their canceled subscription without encountering any errors.

### Actual results

Error: BillingResponse.developerError, details: Account identifiers don't match the previous subscription.
![20250104-192006](https://github.com/user-attachments/assets/d6ba5a0a-3a5f-43a1-b3f9-3448286e0f99)


### Code sample

final PurchaseParam purchaseParam = PurchaseParam(
  productDetails: productDetails,
);

_inAppPurchase.buyNonConsumable(purchaseParam: purchaseParam);

### Screenshots or Video

![20250104-192006](https://github.com/user-attachments/assets/09638f94-b79d-46ce-baeb-f88493682f2a)


### Logs

I/flutter (12345): [InAppPurchase] Error during purchase: BillingResponse.developerError, details: Account identifiers don't match the previous subscription.

### Flutter Doctor output

[✓] Flutter (Channel stable, 3.10.5, on macOS 13.5.1 22G90 darwin-arm64, locale en-US)
    • Flutter version 3.10.5 on channel stable at /Users/username/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 796c8ef792 (5 months ago), 2023-07-12 14:37:59 -0700
    • Engine revision 879e614c7e
    • Dart version 3.0.5

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/username/Library/Android/sdk
    • Platform android-33, build-tools 33.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.19+0-b1751.21-8125866)

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔗 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔗 https://plugins.jetbrains.com/plugin/6351-dart

[✓] Connected device (2 available)
    • iPhone 14 Pro (mobile) • 00008030-001A193234E2002E • ios • iOS 17.0
    • Chrome (web)           • chrome                    • web-javascript • Google Chrome 117.0.5938.62

• No issues found!