-
Notifications
You must be signed in to change notification settings - Fork 1
/
AlepayPayment.cs
130 lines (110 loc) · 3.72 KB
/
AlepayPayment.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
using System;
using Mediachase.Commerce.Orders;
using Mediachase.MetaDataPlus.Configurator;
namespace Foundation.Commerce.Payment.Alepay
{
/// <summary>
/// Represents Payment class for Payoo.
/// </summary>
[Serializable]
public class AlepayPayment : Mediachase.Commerce.Orders.Payment
{
private static MetaClass _metaClass;
public AlepayPayment()
: base(PayooPaymentMetaClass)
{
PaymentType = PaymentType.Other;
ImplementationClass = GetType().AssemblyQualifiedName; // need to have assembly name in order to retrieve the correct type in ClassInfo
}
/// <summary>
/// Gets the alepay payment meta class.
/// </summary>
/// <value>The credit card payment meta class.</value>
public static MetaClass PayooPaymentMetaClass => _metaClass ?? (_metaClass = MetaClass.Load(OrderContext.MetaDataContext, "AlepayPayment"));
public string TransactionCode
{
get { return GetString(Constant.TransactionCode); }
set { this[Constant.TransactionCode] = value; }
}
public string OrderCode
{
get { return GetString(Constant.OrderCode); }
set { this[Constant.OrderCode] = value; }
}
public string OrderAmount
{
get { return GetString(Constant.OrderAmount); }
set { this[Constant.OrderAmount] = value; }
}
public string Currency
{
get { return GetString(Constant.Currency); }
set { this[Constant.Currency] = value; }
}
public string CardNumber
{
get { return GetString(Constant.CardNumber); }
set { this[Constant.CardNumber] = value; }
}
public string CardType
{
get { return GetString(Constant.CardType); }
set { this[Constant.CardType] = value; }
}
public string TransactionStatus
{
get { return GetString(Constant.TransactionStatus); }
set { this[Constant.TransactionStatus] = value; }
}
public string Message
{
get { return GetString(Constant.Message); }
set { this[Constant.Message] = value; }
}
public string Installment
{
get { return GetString(Constant.Installment); }
set { this[Constant.Installment] = value; }
}
public string Is3D
{
get { return GetString(Constant.Is3D); }
set { this[Constant.Is3D] = value; }
}
public string Month
{
get { return GetString(Constant.Month); }
set { this[Constant.Month] = value; }
}
public string BankCode
{
get { return GetString(Constant.BankCode); }
set { this[Constant.BankCode] = value; }
}
public string BankName
{
get { return GetString(Constant.BankName); }
set { this[Constant.BankName] = value; }
}
public string TransactionTime
{
get { return GetString(Constant.TransactionTime); }
set { this[Constant.TransactionTime] = value; }
}
public string SuccessTime
{
get { return GetString(Constant.SuccessTime); }
set { this[Constant.SuccessTime] = value; }
}
public string MerchantFee
{
get { return GetString(Constant.MerchantFee); }
set { this[Constant.MerchantFee] = value; }
}
public string PayerFee
{
get { return GetString(Constant.PayerFee); }
set { this[Constant.PayerFee] = value; }
}
}
}