Skip to content

Commit 13e477b

Browse files
committed
ExpireDate should be in 24-hour format
1 parent fe66091 commit 13e477b

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

PAYNLSDK/API/Transaction/Start/Request.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using System;
2-
using Newtonsoft.Json;
3-
using System.Collections.Specialized;
4-
using PAYNLSDK.Utilities;
5-
using PAYNLSDK.Objects;
1+
using Newtonsoft.Json;
62
using PAYNLSDK.Enums;
73
using PAYNLSDK.Exceptions;
4+
using PAYNLSDK.Objects;
5+
using PAYNLSDK.Utilities;
6+
using System;
7+
using System.Collections.Specialized;
88

99
namespace PAYNLSDK.API.Transaction.Start
1010
{
@@ -157,10 +157,9 @@ public override NameValueCollection GetParameters()
157157
nvc.Add("transaction[enduserId]", TransactionData.EnduserId.ToString());
158158
}
159159

160-
161-
if (!ParameterValidator.IsNull(TransactionData.ExpireDate))
160+
if (TransactionData.ExpireDate != null)
162161
{
163-
nvc.Add("transaction[expireDate]", ((DateTime)TransactionData.ExpireDate).ToString("dd-MM-yyyy hh:mm:ss"));
162+
nvc.Add("transaction[expireDate]", ((DateTime)TransactionData.ExpireDate).ToString("dd-MM-yyyy HH:mm:ss"));
164163
}
165164
// TODO: Are these right? Shouldn't this be BOOL / INT?
166165
/*

0 commit comments

Comments
 (0)