registerDevice method
Implementation
@override
Future<void> registerDevice(String tpn, String merchantKey) async {
try {
await _methodChannel.invokeMethod('registerDevice', {
'tpn': tpn,
'merchantKey': merchantKey,
});
} on PlatformException catch (e) {
throw Exception('Failed to register device: ${e.message}');
}
}