Aprouver le paiement

This commit is contained in:
2017-05-15 13:36:14 +02:00
parent 48bd22ca72
commit b518a2c647
22 changed files with 4610 additions and 41 deletions

View File

@ -1,7 +1,20 @@
@model PaypalPayment
@if (Model!=null && Model.Executor!=null) {
@Html.DisplayFor(m=>m.Executor)
@if (Model!=null && Model.PaypalPaymentId!=null) {
if (Model.Executor.Id == User.GetUserId()) {
<text>
Vous avez payé :
</text>
} else {
<text>
@Html.DisplayFor(m=>m.Executor.UserName) a payé :
</text>
}
// Da failback
<a asp-controller="Manage" asp-action="PaymentInfo" asp-route-id="@Model.PaypalPaymentId">@Model.PaypalPaymentId</a>
} else {
<div id="paypal-button"></div>