Tests and package name updated
This commit is contained in:
27
Runtime/Models/Websocket/QRPaymentStatus.cs
Normal file
27
Runtime/Models/Websocket/QRPaymentStatus.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
|
||||
namespace Darkmatter.Fonepay
|
||||
{
|
||||
[Serializable]
|
||||
public struct QRPaymentStatus
|
||||
{
|
||||
public string remarks1;
|
||||
public string remarks2;
|
||||
public string transactionDate;
|
||||
public string productNumber;
|
||||
public float amount;
|
||||
public string message;
|
||||
public bool success;
|
||||
public string commissionType;
|
||||
public float commissionAmount;
|
||||
public float totalCalculatedAmount;
|
||||
public bool paymentSuccess;
|
||||
|
||||
public PaymentOutcome Outcome => (success, paymentSuccess) switch
|
||||
{
|
||||
(true, true) => PaymentOutcome.Complete,
|
||||
(true, false) => PaymentOutcome.CancelledByUser,
|
||||
(false, _) => PaymentOutcome.Failed,
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user