init method
Initialize Stripe SDK
Parameters:
isTest
: true for test mode, false for live mode
Implementation
Future<void> init({required bool isTest, required String publishableKey}) async {
Stripe.publishableKey = publishableKey;
Stripe.merchantIdentifier = 'merchant.flutter.stripe.test';
await Stripe.instance.applySettings().catchError((e) {
log("Stripe Apply Settings => $e");
throw e.toString();
});
this.isTest = isTest;
}