getUPIStatus method

Future<String> getUPIStatus(
  1. String url
)

Implementation

Future<String> getUPIStatus(String url) async {
  final response = await httpClient.get(Uri.parse(url));

  if (response.statusCode != 200) {
    throw Exception('error creating order');
  }

  final json = jsonDecode(response.body);
  if (kDebugMode) {
    print(json);
  }
  return response.body;
}