updatePurchaseWithProduct abstract method

Future<Map<String, QEntitlement>?> updatePurchaseWithProduct({
  1. required QProduct newProduct,
  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 updatePurchaseWithProduct() function.

See Google Play Documentation for more details.

Implementation

Future<Map<String, QEntitlement>?> updatePurchaseWithProduct({
  required QProduct newProduct,
  required String oldProductId,
  QProrationMode? prorationMode,
});