verify method
Implementation
Future<ShurjopayVerificationModel> verify({required String orderID}) async {
final Response response = await spHttpRequest(
httpRequestType: HttpRequestType.post,
path: ApiEndpoints.verify,
payload: {"order_id": orderID},
);
if (response.data != null) {
if (response.data is String) {
List<dynamic> decodedResponse =
List<dynamic>.from(json.decode(response.data));
return ShurjopayVerificationModel.fromJson(decodedResponse.first);
}
return ShurjopayVerificationModel.fromJson(
List<dynamic>.from(response.data).first,
);
}
return ShurjopayVerificationModel();
}