updatePurchase abstract method

Future<Map<String, QEntitlement>?> updatePurchase({
  1. required String newProductId,
  2. required String oldProductId,
  3. QProrationMode? prorationMode,
})

Android only. Returns null if called on iOS.

Upgrading, downgrading, or changing a subscription on Google Play Store requires calling updatePurchase() function.

See Google Play Documentation for more details.

Implementation

Future<Map<String, QEntitlement>?> updatePurchase({
  required String newProductId,
  required String oldProductId,
  QProrationMode? prorationMode,
});