checkPretend method

Future<FFXPurchaseState> checkPretend({
  1. required String item,
  2. String? plan,
  3. int? amount,
})

Records a purchase on drip's pretend store, in the preview: item is the upgrade's claim with its plan (monthly, yearly or once), an unlock with none, or the credits with the pack's amount. Only the preview's backend records it, as a test purchase that charges nothing; a pretend subscription lasts its free trial, else one period, and doesn't renew. The platform refuses it with purchaseNotVerified.

Implementation

Future<FFXPurchaseState> checkPretend({
  required String item,
  String? plan,
  int? amount,
}) => _check({
  'store': 'pretend',
  'item': item,
  'plan': plan,
  'amount': ?amount,
});