Payment constructor

Payment({
  1. required MethodChannel channel,
  2. required IStoneHandler paymentHandler,
  3. IStoneSmartHandler? iStoneSmartHandler,
})

Implementation

Payment({
  required this.channel,
  required this.paymentHandler,
  this.iStoneSmartHandler,
}) {
  channel.setMethodCallHandler((e) => IStoneHelper.callHandler(
        call: e,
        iStoneHandler: paymentHandler,
        stoneSmartHandler: iStoneSmartHandler,
      ));
}