getReceipt method

Future<Receipt> getReceipt(
  1. String sdkId,
  2. String entityId
)

Implementation

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