getReceipt method
Implementation
Future<Receipt?> getReceipt(String sdkId, String entityId) async {
final res = await _methodChannel.invokeMethod<String>(
'ReceiptApi.tryAndRecover.getReceipt',
{
"sdkId": sdkId,
"entityId": jsonEncode(entityId),
}
).catchError(convertPlatformException);
if (res == null) throw AssertionError("received null result from platform method getReceipt");
final parsedResJson = jsonDecode(res);
return parsedResJson == null ? null : Receipt.fromJSON(parsedResJson);
}