-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBamboraSettingsBase.cs
63 lines (45 loc) · 2.04 KB
/
BamboraSettingsBase.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
using System.Collections.Generic;
namespace Rocketjump.PaymentProviders.BamboraCheckout
{
public class BamboraSettingsBase
{
public BamboraSettingsBase(IDictionary<string, string> settings)
{
ContinueUrl = settings["continueUrl"];
CancelUrl = settings["cancelUrl"];
ErrorUrl = settings["errorUrl"];
TestMerchantNumber = settings["testMerchantNumber"];
TestAccessKey = settings["testAccessKey"];
TestSecretKey = settings["testSecretKey"];
TestMd5Key = settings["testMd5Key"];
LiveMerchantNumber = settings["liveMerchantNumber"];
LiveAccessKey = settings["liveAccessKey"];
LiveSecretKey = settings["liveSecretKey"];
LiveMd5Key = settings["liveMd5Key"];
Language = settings["language"];
Capture = bool.Parse(settings["capture"]);
TestMode = bool.Parse(settings["testMode"]);
ExcludedPaymentMethods = settings["excludedPaymentMethods"];
ExcludedPaymentGroups = settings["excludedPaymentGroups"];
ExcludedPaymentTypes = settings["excludedPaymentTypes"];
}
public string ContinueUrl { get; set; }
public string CancelUrl { get; set; }
public string ErrorUrl { get; set; }
public string TestMerchantNumber { get; set; }
public string LiveMerchantNumber { get; set; }
public string TestAccessKey { get; set; }
public string LiveAccessKey { get; set; }
public string TestSecretKey { get; set; }
public string LiveSecretKey { get; set; }
public string TestMd5Key { get; set; }
public string LiveMd5Key { get; set; }
public string Language { get; set; }
public bool Capture { get; set; }
public bool TestMode { get; set; }
// Advanced settings
public string ExcludedPaymentMethods { get; set; }
public string ExcludedPaymentGroups { get; set; }
public string ExcludedPaymentTypes { get; set; }
}
}