getSavedCards method
Implementation
Future<Response> getSavedCards(String merchantId) async {
//debugPrint('Calling get saved cards api ${StringConstants.getSavedCards} with merchantId $merchantId');
final Map<String, String> headers = <String, String>{
'Content-Type': 'application/json',
};
final getMerchantDetailsRequestJson = jsonEncode({"me_id": merchantId});
try {
final Response response = await http.post(
Uri.parse(StringConstants.getSavedCards),
body: getMerchantDetailsRequestJson,
headers: headers);
return response;
} catch (e) {
//debugPrint('Fetch saved cards api exception is ${e.toString()}');
rethrow;
}
}