Skip to content

Commit

Permalink
Merge pull request #2 from GerardGargan/dev
Browse files Browse the repository at this point in the history
fix domain error
  • Loading branch information
GerardGargan authored Aug 17, 2024
2 parents 2c41fac + 60ddb39 commit 991910c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Bookstore.Web/Areas/Admin/Controllers/OrderController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public IActionResult Details_PAY_NOW()
OrderVM.OrderHeader = _unitOfWork.OrderHeader.Get(x => x.Id == OrderVM.OrderHeader.Id, includeProperties: "ApplicationUser");
OrderVM.OrderDetail = _unitOfWork.OrderDetail.GetAll(x => x.OrderHeaderId == OrderVM.OrderHeader.Id, includeProperties: "Product");

var domain = Request.Scheme+Request+"://"+ Request.Host.Value +"/";
var domain = Request.Scheme+"://"+ Request.Host.Value +"/";
var options = new Stripe.Checkout.SessionCreateOptions
{
SuccessUrl = domain + $"admin/order/PaymentConfirmation?orderHeaderId={OrderVM.OrderHeader.Id}",
Expand Down
2 changes: 1 addition & 1 deletion Bookstore.Web/Areas/Customer/Controllers/CartController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public IActionResult SummaryPOST()
if (applicationUser.CompanyId.GetValueOrDefault() == 0)
{
// regular customer, process stripe payment
var domain = Request.Scheme + Request + "://" + Request.Host.Value + "/";
var domain = Request.Scheme + "://" + Request.Host.Value + "/";
var options = new Stripe.Checkout.SessionCreateOptions
{
SuccessUrl = domain + $"customer/cart/OrderConfirmation?id={ShoppingCartVM.OrderHeader.Id}",
Expand Down

0 comments on commit 991910c

Please sign in to comment.