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