configure method
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,
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,
});
}