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

@ -0,0 +1,20 @@
@using PayPal.Api
@model Payment
<dl>
<dt> État du paiment
</dt>
<dd> @SR[Model.state] @Model.failure_reason
</dd>
<dt>
</dt>
<dd>@Model.payment_instruction
</dd>
</dl>
@if (Model.state=="created") {
<a href="@Model.GetApprovalUrl()">Autoriser le paiement</a>
}
@{ var refundUrl = Model.GetHateoasLink("refund"); }
@if (refundUrl!=null) {
<a href="@refundUrl">Rembourser ce paiement</a>
}