payment info

This commit is contained in:
2017-05-26 03:35:56 +02:00
parent 9b734f2b9a
commit 6bc6bd23a3
5 changed files with 65 additions and 9 deletions

View File

@ -1,8 +1,8 @@
@{
ViewData["Title"] = "Le paiment "+ViewData["id"]+" a échoué";
}
<dl>
<dt> Le paiment @ViewData["id"] a échoué
</dt>
<dd> @ViewData["error"]
</dd>
</dl>
<h2>@ViewData["Title"].</h2>
<p>
@ViewData["error"]
</p>

View File

@ -0,0 +1,31 @@
@model Yavsc.ViewModels.PayPal.PaymentInfo
@{
ViewData["Title"] = "Informations sur le paiment "+ViewData["id"];
}
<h2>@ViewData["Title"].</h2>
<p>
@if (Model.DbContent.Executor.Id == User.GetUserId()) {
<text>
Votre paiment
</text>
} else {
<text>
Le paiment de @Html.DisplayFor(m=>m.DbContent.Executor.UserName)
</text>
}
<text> :
<dl>
<dt>
[@Model.DbContent.CreationToken]<br/>
@Html.DisplayFor(m=>m.DetailsFromPayPal)
</dt>
<dd>
</dd>
</dl>
</text>
</p>

View File

@ -1,6 +1,6 @@
@model NominativeServiceCommand
@inject IOptions<PayPalSettings> PayPalSettings
@Model.PaymentId
@if (Model!=null && Model.PaymentId!=null) {
@if (Model.Regularisation.Executor.Id == User.GetUserId()) {
@ -13,7 +13,7 @@
</text>
}
<text> :
</text><a asp-controller="Manage" asp-action="PaymentInfo" asp-route-id="@Model.Regularisation.PaypalPaymentId">@Model.Regularisation.PaypalPaymentId</a>
</text><a asp-controller="Manage" asp-action="PaymentInfo" asp-route-id="@Model.Regularisation.CreationToken">@Model.Regularisation.CreationToken</a>
} else {
<div id="paypalzone"></div>

View File

@ -0,0 +1,24 @@
@model GetExpressCheckoutDetailsResponseDetailsType
@Html.DisplayFor(m=>m.PayerInfo)
@Html.DisplayFor(m=>m.InvoiceID)
@Html.DisplayFor(m=>m.BillingAgreementAcceptedStatus)
@Html.DisplayFor(m=>m.BillingAddress)
@Html.DisplayFor(m=>m.ContactPhone)
@Html.DisplayFor(m=>m.Note)
@Html.DisplayFor(m=>m.CheckoutStatus)
@Html.DisplayFor(m=>m.PayPalAdjustment)
@Html.DisplayFor(m=>m.PaymentDetails)
@Html.DisplayFor(m=>m.UserSelectedOptions)
@Html.DisplayFor(m=>m.IncentiveDetails)
@if (Model.GiftReceiptEnable)
@Html.DispayFor(m=>m.GiftMessage)
@Html.DispayFor(m=>m.GiftWrapName)
@Html.DispayFor(m=>m.GiftWrapAmount)
@Html.DispayFor(m=>m.BuyerMarketingEmail)
@Html.DispayFor(m=>m.SurveyQuestion)
@Html.DispayFor(m=>m.SurveyChoiceSelected)
@Html.DispayFor(m=>m.CartChangeTolerance)
@Html.DispayFor(m=>m.InstrumentDetails)

View File

@ -34,6 +34,7 @@
@using Yavsc.ViewModels.Blogspot;
@using Microsoft.AspNet.Hosting;
@using Microsoft.Extensions.PlatformAbstractions;
@using PayPal.PayPalAPIInterfaceService.Model;
@inject IViewLocalizer LocString
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"