Skip to content

Commit

Permalink
fix paymentRequestUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Nov 5, 2023
1 parent ae3c3ae commit bfe87c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Modules/OrchardCore.Commerce/Views/OrderPart.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@
</div>
@if (string.Equals(Model.OrderPart.Status.Text, OrderStatuses.Pending, StringComparison.OrdinalIgnoreCase))
{
var paymentRequestUrl = Orchard.Action<PaymentController>(controller =>
controller.PaymentRequest(Model.OrderPart.ContentItem.ContentItemId));
<div class="my-2 d-flex justify-content-center">
<div class="pay-button-container">
<a href="@paymentRequestUrl"
<a href="@Url.Content($"~/checkout/paymentrequest/{Model.OrderPart.ContentItem.ContentItemId}")"
class="pay-button btn btn-success justify-content-center" >
<span class="pay-text">
@T["Complete Payment"]
Expand Down

0 comments on commit bfe87c3

Please sign in to comment.