setHandler method
Implementation
void setHandler(IStoneHandler handler) {
if (_instance == null) {
throw Exception('Payment instance not initialized. Call Payment.create() first.');
}
_instance?.paymentHandler = handler;
_instance?.channel.setMethodCallHandler(
(e) => IStoneHelper.callHandler(
call: e,
iStoneHandler: paymentHandler,
stoneTechHandler: null,
onTransaction: (model) => _checkPinpadActivated(model),
),
);
}