Skip to content

Commit

Permalink
add logging to payment api
Browse files Browse the repository at this point in the history
  • Loading branch information
meofiscoding committed Nov 26, 2023
1 parent 32d73d1 commit e0c60c9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ public async Task<Results<RedirectHttpResult, BadRequest>> CheckoutSuccess([From
UserId = response.UserId,
};

_logger.LogInformation($"Redirecting to {_config["ClientUrl"]}/subscription/success");

// TODO: Uncomment when need to serve explicit service based on user subscription
// _context.UserPayments.Add(userPayment);
// await _context.SaveChangesAsync();
Expand All @@ -209,7 +211,7 @@ public async Task<Results<RedirectHttpResult, BadRequest>> CheckoutSuccess([From
}
catch (Exception ex)
{
_logger.LogError("error into order Controller on route /canceled " + ex.Message);
_logger.LogError("error into order Controller on route / canceled " + ex.Message);
return TypedResults.BadRequest();
}
}
Expand Down

0 comments on commit e0c60c9

Please sign in to comment.