getTransactions method

Future<TransactionResult> getTransactions({
  1. required String customerId,
  2. String? cursor,
})

Implementation

Future<TransactionResult> getTransactions({
  required String customerId,
  String? cursor,
}) async {
  try {
    return await AnsaFlutterSdkPlatform.instance.getTransactions(
      customerId: customerId,
      cursor: cursor,
    );
  } catch (e) {
    _logger.error('Failed to get transactions', e);
    rethrow;
  }
}