getMerchant method

Future<Merchant> getMerchant({
  1. required String merchantId,
})

Implementation

Future<Merchant> getMerchant({required String merchantId}) async {
  try {
    return await AnsaFlutterSdkPlatform.instance.getMerchant(
      merchantId: merchantId,
    );
  } catch (e) {
    _logger.error('Failed to get merchant', e);
    rethrow;
  }
}