Skip to content

Commit

Permalink
hotfix: remove hardcode baseUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
meofiscoding committed Nov 26, 2023
1 parent c8f898f commit 8c16373
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ public async Task<string> CheckOut(Subcription product, string userEmail)
try
{
// Get the base URL for the subscription
//var request = _httpContextAccessor.HttpContext?.Request ?? throw new Exception("Could not get request to checkout");
//var baseUrl = $"{request.Scheme}://{request.Host}";
var baseUrl = "https://localhost:5000";
var request = _httpContextAccessor.HttpContext?.Request ?? throw new Exception("Could not get request to checkout");
var baseUrl = $"{request.Scheme}://{request.Host}";
// var baseUrl = "https://localhost:5000";
var options = new SessionCreateOptions
{
// Stripe calls these user defined endpoints
Expand Down

0 comments on commit 8c16373

Please sign in to comment.