Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PaymentResult.cs
1namespace Paiwise
2{
6 public class PaymentResult
7 {
12 public PaymentResult(string Error)
13 {
14 this.Ok = false;
15 this.Error = Error;
16 this.Amount = 0;
17 this.Currency = string.Empty;
18 }
19
25 public PaymentResult(decimal Amount, string Currency)
26 {
27 this.Ok = true;
28 this.Error = null;
29 this.Amount = Amount;
30 this.Currency = Currency;
31 }
32
36 public bool Ok { get; }
37
41 public string Error { get; }
42
46 public decimal Amount { get; }
47
51 public string Currency { get; }
52 }
53}
Result of request payment.
Definition: PaymentResult.cs:7
bool Ok
If payment was successful or not.
string Currency
Currency of amount paid.
decimal Amount
Amount paid.
PaymentResult(decimal Amount, string Currency)
Successful payment
PaymentResult(string Error)
Failed payment
string Error
Error message, if payment was not successful.