getReceipt method

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

Implementation

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