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,
})
override

Implementation

@override
Future<void> configure({
  required String publishableKey,
  bool syncStoreKitTransactions = true,
  String? appleMerchantId,
  bool preloadCheckout = false,
  int? maxPreloadedWebViews,
  String? applePaySetupBehavior,
}) 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,
  });
}