getSetupSession method

Future<SuccessResponse> getSetupSession(
  1. String setupSessionId
)

Implementation

Future<SuccessResponse> getSetupSession(String setupSessionId) async {
  var successResponse = SuccessResponse();
  var url = Constant.baseURL + Constant.getSetupSession + setupSessionId;
  final response = await http.get(Uri.parse(url), headers: {
    "Content-Type": "application/json",
    "accept": "application/json",
    "x-api-key": SwirepaySdk.secretKey
  });
  final result = jsonDecode(response.body);
  successResponse.responseCode = "${response.statusCode}";
  successResponse.responseBody = result;
  return successResponse;
}