setStripeSettings method
Configure the environment with your Stripe Publishable Keys and optional Apple Pay Identifiers
Implementation
Future<void> setStripeSettings(String stripePublishableKey,
[String? applePayMerchantIdentifier]) async {
final Map<String, dynamic> args = <String, dynamic>{
"stripePublishableKey": stripePublishableKey
};
if (applePayMerchantIdentifier != null) {
args.addAll(<String, dynamic>{
"applePayMerchantIdentifier": applePayMerchantIdentifier
});
}
await _channel.invokeMethod('setStripeSettings', args);
}