getRawReceiptAttachment method

Future<Uint8List> getRawReceiptAttachment(
  1. String sdkId,
  2. String receiptId,
  3. String attachmentId
)

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);
}