getRawReceiptAttachment method
Implementation
Future<Uint8List> getRawReceiptAttachment(String sdkId, String receiptId, String attachmentId) async {
final res = await _methodChannel.invokeMethod<String>(
'ReceiptApi.getRawReceiptAttachment',
{
"sdkId": sdkId,
"receiptId": jsonEncode(receiptId),
"attachmentId": jsonEncode(attachmentId),
}
);
if (res == null) throw AssertionError("received null result from platform method getRawReceiptAttachment");
final parsedResJson = jsonDecode(res);
return base64Decode(parsedResJson as String);
}