paymentWithZero method
Implementation
@override
Future<Either<Failure, IncommePaymentStatus>> paymentWithZero({
Map<String, dynamic>? param,
}) async {
try {
// String url = HttptUrlBuilder.create(
// IncommeConstants.appApi.endpoint.paymentWithZero,
// );
final response = await httpHandler.get(
url: Api.payment.paymentWithZero,
queryParameters: param,
withAccessToken: true,
);
return Right(PaymentStatusDto.fromJson(response).jsonResult);
} on Exception catch (error) {
return Left(FailureResponse.mapExceptionToFailure(error));
}
}