Skip to content
This repository was archived by the owner on Oct 9, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions PAYNLFormsApp/Form2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ private void Form2_Load(object sender, EventArgs e)
cores.Add(PAYNLSDK.API.RequestBase.Core1, PAYNLSDK.API.RequestBase.Core1Label);
cores.Add(PAYNLSDK.API.RequestBase.Core2, PAYNLSDK.API.RequestBase.Core2Label);
cores.Add(PAYNLSDK.API.RequestBase.Core3, PAYNLSDK.API.RequestBase.Core3Label);
cores.Add(PAYNLSDK.API.RequestBase.Core4, PAYNLSDK.API.RequestBase.Core4Label);
comboBox1.DataSource = new BindingSource(cores, null);
comboBox1.DisplayMember = "Value";
comboBox1.ValueMember = "Key";
Expand Down
12 changes: 8 additions & 4 deletions PAYNLSDK/API/RequestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,22 @@ public static Dictionary<string, string> GetCores()
cores.Add("Core1 (" + PAYNLSDK.API.RequestBase.Core1 + ")", PAYNLSDK.API.RequestBase.Core1Label);
cores.Add("Core2 (" + PAYNLSDK.API.RequestBase.Core2 + ")", PAYNLSDK.API.RequestBase.Core2Label);
cores.Add("Core3 (" + PAYNLSDK.API.RequestBase.Core3 + ")", PAYNLSDK.API.RequestBase.Core3Label);
cores.Add("Core4 (" + PAYNLSDK.API.RequestBase.Core4 + ")", PAYNLSDK.API.RequestBase.Core4Label);
return cores;
}

/// <summary>
/// PAYNL Cores
/// </summary>
public static readonly string Core1 = "https://rest-api.pay.nl";
public static readonly string Core1Label = "Pay.nl (Default)";
public static readonly string Core2 = "https://rest.achterelkebetaling.nl";
public static readonly string Core1 = "https://connect.pay.nl";
public static readonly string Core1Label = "Connect.pay.nl (Default)";
public static readonly string Core2 = "https://connect.achterelkebetaling.nl";
public static readonly string Core2Label = "Achterelkebetaling.nl";
public static readonly string Core3 = "https://rest.payments.nl";
public static readonly string Core3 = "https://connect.payments.nl";
public static readonly string Core3Label = "Payments.nl";
public static readonly string Core4 = "https://rest-api.pay.nl";
public static readonly string Core4Label = "Pay.nl";


/// <summary>
/// Indicator stating whether or not a Service ID is required for a specific request
Expand Down
2 changes: 1 addition & 1 deletion PAYNLSDK/API/Transaction/Start/Request.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void SetServiceId(string value)

public override int Version
{
get { return 5; }
get { return 19; }
}

public override string Controller
Expand Down
4 changes: 0 additions & 4 deletions PAYNLSDK/Converters/DMYConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ public override void WriteJson(JsonWriter writer, object value, JsonSerializer s
if (value is DateTime)
{
var dateTime = (DateTime)value;
if (dateTime.Kind == DateTimeKind.Unspecified)
{
throw new JsonSerializationException("Cannot convert date time with an unspecified kind");
}
string convertedDateTime = dateTime.ToString(Format);
writer.WriteValue(convertedDateTime);
}
Expand Down