confirmCheckout method
Implementation
@override
Future<Either<Failure, CheckoutConfirmDto>> confirmCheckout(
String orderGroupId,
) async {
try {
final result = await httpHandler.get(
url: Api.payment.checkoutConfirmV2,
withAccessToken: true,
queryParameters: {"orderGroupId": orderGroupId},
);
return Right(CheckoutConfirmDto.fromJson(result));
} on Exception catch (error) {
return Left(FailureResponse.mapExceptionToFailure(error));
}
}