configure method

  1. @override
Future<void> configure({
  1. required String publishableKey,
  2. bool syncStoreKitTransactions = true,
  3. String? appleMerchantId,
  4. bool preloadCheckout = false,
  5. int? maxPreloadedWebViews,
  6. String? applePaySetupBehavior,
  7. String? playLicenseKey,
  8. bool syncPlayPurchases = true,
  9. bool strictAck = false,
})
override

Implementation

@override
Future<void> configure({
  required String publishableKey,
  bool syncStoreKitTransactions = true,
  String? appleMerchantId,
  bool preloadCheckout = false,
  int? maxPreloadedWebViews,
  String? applePaySetupBehavior,
  String? playLicenseKey,
  bool syncPlayPurchases = true,
  bool strictAck = false,
}) async {
  await methodChannel.invokeMethod('configure', {
    'publishableKey': publishableKey,
    'syncStoreKitTransactions': syncStoreKitTransactions,
    if (appleMerchantId != null) 'appleMerchantId': appleMerchantId,
    'preloadCheckout': preloadCheckout,
    if (maxPreloadedWebViews != null) 'maxPreloadedWebViews': maxPreloadedWebViews,
    if (applePaySetupBehavior != null) 'applePaySetupBehavior': applePaySetupBehavior,
    if (playLicenseKey != null) 'playLicenseKey': playLicenseKey,
    'syncPlayPurchases': syncPlayPurchases,
    'strictAck': strictAck,
  });
}