RickardPettersson / swish-api-csharp

Swish For Merchant API Client .Net Standard Library
MIT License
28 stars 13 forks source link

Path to certificate file doesn't work on Linux (WSL) #10

Closed izaxon closed 1 year ago

izaxon commented 2 years ago

The path now contains backslashes (). This only works on Windows, but not on Linux. It is proposed to use System.IO.Path.Combine() on line 17 in Program.cs (project SwishApiConsoleTest)..

string certificatePath = Path.Combine(Environment.CurrentDirectory, "TestCert", "Swish_Merchant_TestCertificate_1234679304.p12");
RickardPettersson commented 2 years ago

ok, looking into it

RickardPettersson commented 1 year ago

I have now updated the code and the NuGet package version 2.0 is on the way, Microsoft doing stuff with the package before it come available public but the code is in this repository from now.

RickardPettersson commented 1 year ago

I missed to say that there is in the new clients like eCommerceClient you can now have parameter for the ClientCertificate where you can put a stream so you can use your own code to get the certificate how you like and then make it as a Stream to the library to read.