Use NVP/SOAP Api from PayPal
This commit is contained in:
parent
ec6de91cf0
commit
e415e78aaa
33 changed files with 2382 additions and 631 deletions
8
Yavsc/Views/Manage/PaymentError.cshtml
Normal file
8
Yavsc/Views/Manage/PaymentError.cshtml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
|
||||
<dl>
|
||||
<dt> Le paiment @ViewData["id"] a échoué
|
||||
</dt>
|
||||
<dd> @ViewData["error"]
|
||||
</dd>
|
||||
</dl>
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
@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>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue