Skip to content

Commit

Permalink
Finish release/v1.3.1
Browse files Browse the repository at this point in the history
Release/v1.3.1
  • Loading branch information
dragos-dobre authored May 11, 2022
2 parents a5a249b + f6bc8d6 commit f2b8bb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OpenImis.ePayment/Escape/Payment/Data/GepgUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public String CreateGePGCancelPaymentRequest(IConfiguration Configuration, int P

using (var xw2 = XmlWriter.Create(sb, settings))
{
xs.Serialize(xw, gepgBillCanclReq, ns);
xs.Serialize(xw, GePGPaymentCancelRequest, ns);
xw.Flush();
}
}
Expand Down Expand Up @@ -534,8 +534,8 @@ public async Task<string> CreateBulkBills(IConfiguration configuration, RequestB
var ns = new XmlSerializerNamespaces();
ns.Add("", "");
var settings = new XmlWriterSettings() { OmitXmlDeclaration = true };
var sb = new StringBuilder();

using (var sb = new MemoryStream())
using (var xw = XmlWriter.Create(sb, settings))
{
try
Expand All @@ -548,7 +548,7 @@ public async Task<string> CreateBulkBills(IConfiguration configuration, RequestB
_logger.LogError(ex, "Exception during XML serialization");
}

return Encoding.UTF8.GetString(sb.ToArray());
return sb.ToString();
}
}
}
Expand Down

0 comments on commit f2b8bb5

Please sign in to comment.