paymentInquiry method

  1. @override
Future<Either<Failure, PgInquiry>> paymentInquiry({
  1. Map<String, dynamic>? param,
})
override

Implementation

@override
Future<Either<Failure, PgInquiry>> paymentInquiry({
  Map<String, dynamic>? param,
}) async {
  try {
    final response = await httpHandler.post(
      url: Api.payment.paymentInquiry,
      requestBody: param,
      isUrlPG: true,
    );

    return Right(PgInquiryDto.fromJson(response).jsonResult);
  } on Exception catch (error) {
    return Left(FailureResponse.mapExceptionToFailure(error));
  }
}