Skip to content

Commit

Permalink
fix #7
Browse files Browse the repository at this point in the history
  • Loading branch information
totpero committed Dec 27, 2024
1 parent 77bb17e commit dec823c
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 20 deletions.
7 changes: 7 additions & 0 deletions Bt.IPay.Net.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bt.IPay.Net.Tests", "test\B
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bt.IPay.Net.Console", "src\Bt.IPay.Net.Console\Bt.IPay.Net.Console.csproj", "{4105BBC2-B57A-47D9-A260-B31C27D1CBEB}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8EC462FD-D22E-90A8-E5CE-7E832BA40C5D}"
ProjectSection(SolutionItems) = preProject
btepos.ro-web.jpg = btepos.ro-web.jpg
LICENSE = LICENSE
README.md = README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
2 changes: 1 addition & 1 deletion src/Bt.IPay.Net.Console/Bt.IPay.Net.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
24 changes: 13 additions & 11 deletions src/Bt.IPay.Net/Bt.IPay.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<Company>Sibies Soft</Company>
<Authors>Sibies Soft</Authors>
<RepositoryUrl>https://github.com/sibies/Bt.IPay.Net</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageTags>bt ipay</PackageTags>
<NeutralLanguage>ro</NeutralLanguage>
<PackageProjectUrl>www.sibies.ro</PackageProjectUrl>
Expand All @@ -16,9 +18,14 @@
<AssemblyOriginatorKeyFile>key.pfx</AssemblyOriginatorKeyFile>
<PackageIcon>btepos.ro-web.jpg</PackageIcon>
<Description>Clinet .Net pentru platile online iPay de la Banca Transilvania</Description>
<Version>2.1.0.0</Version>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
<FileVersion>2.1.0.0</FileVersion>
<Version>2.3.0.0</Version>
<AssemblyVersion>2.3.0.0</AssemblyVersion>
<FileVersion>2.3.0.0</FileVersion>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageReleaseNotes>
## What's Changed
* Add Missing USD
</PackageReleaseNotes>
</PropertyGroup>

<ItemGroup>
Expand All @@ -27,14 +34,9 @@
</ItemGroup>

<ItemGroup>
<None Include="..\..\LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="..\..\btepos.ro-web.jpg">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="..\..\README.md" Pack="True" PackagePath="" />
<None Include="..\..\LICENSE" Pack="True" PackagePath="" />
<None Include="..\..\btepos.ro-web.jpg" Pack="True" PackagePath="" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/Bt.IPay.Net/Constants/ApiConsts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
public static class ApiConsts
{
public const string Version = "2.1.0.0";
public const string Version = "2.2.0.0";
public const string DefaultPhone = "40799999999";

public static class Production
Expand Down
1 change: 1 addition & 0 deletions src/Bt.IPay.Net/General/IPayCurrency.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,6 @@ public enum IPayCurrency
ZMW = 967,
ZWL = 932,
EUR = 978,
USD = 840,
}
}
10 changes: 5 additions & 5 deletions test/Bt.IPay.Net.Tests/Bt.IPay.Net.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<PackageReference Include="FluentAssertions" Version="7.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
7 changes: 5 additions & 2 deletions test/Bt.IPay.Net.Tests/IpayClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ namespace Bt.IPay.Net.Tests
{
public class IpayClientTests
{
private const string DevUsername = "test_api";
private const string DevPassword = "test_api1";

[Fact]
public async Task RegisterPreAuthTest()
{
var client = new IpayClient("test_api", "test_api1");
var client = new IpayClient(DevUsername, DevPassword);
var data = new RegisterRequest
{
Currency = IPayCurrency.RON,
Expand Down Expand Up @@ -56,7 +59,7 @@ public async Task RegisterPreAuthTest()
[Fact]
public async Task GetOrderStatusExtendedTest()
{
var client = new IpayClient("test_api", "test_api1");
var client = new IpayClient(DevUsername, DevPassword);
var data = new GetOrderStatusExtendedRequest
{
OrderId = "44c36581-7b32-4d2f-9d8e-d932a7a8beae"
Expand Down

0 comments on commit dec823c

Please sign in to comment.