36 lines
1.3 KiB
C#
36 lines
1.3 KiB
C#
namespace Marco.Pms.Model.ViewModels.PaymentGetway
|
|
{
|
|
public class RazorpayPaymentDetails
|
|
{
|
|
public string? PaymentId { get; set; }
|
|
public string? OrderId { get; set; }
|
|
public decimal Amount { get; set; }
|
|
public string? Currency { get; set; }
|
|
public string? Status { get; set; } // created, authorized, captured, refunded, failed
|
|
public string? Method { get; set; } // card, netbanking, wallet, upi
|
|
public string? Email { get; set; }
|
|
public string? Contact { get; set; }
|
|
public string? Description { get; set; }
|
|
public string? CustomerName { get; set; }
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
// Payment method specific details
|
|
public CardDetails? CardDetails { get; set; }
|
|
public BankDetails? BankDetails { get; set; }
|
|
public UpiDetails? UpiDetails { get; set; }
|
|
public WalletDetails? WalletDetails { get; set; }
|
|
|
|
// Fee and tax
|
|
public decimal Fee { get; set; }
|
|
public decimal Tax { get; set; }
|
|
|
|
// Error details (if payment failed)
|
|
public string? ErrorCode { get; set; }
|
|
public string? ErrorDescription { get; set; }
|
|
|
|
// Additional flags
|
|
public bool InternationalPayment { get; set; }
|
|
public bool Captured { get; set; }
|
|
}
|
|
}
|