Code Monkey home page Code Monkey logo

barion-dotnet's Introduction

szelpe.hu

Build

  1. run build.ps1 - this generates index.html
  2. run docker-build.ps1 - this creates and pushes the image called szelpe/szelpe.hu:latest

Run

You can run the docker image:

docker run -d -p 8080:80 szelpe/szelpe.hu:latest

barion-dotnet's People

Contributors

alexkiss avatar dependabot[bot] avatar martonl avatar martonx avatar szelpe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

barion-dotnet's Issues

System.Net.WebException

Sziasztok!

Ma reggelig minden rendben volt a kártya elfogadással, viszont most az alábbi hiba üzenetet kapom, amikor elküldöm az adatokat:

System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Authentication failed because the remote party has closed the transport stream. at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult) at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context) at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar) --- End of inner exception stack trace --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at BarionClientLibrary.BarionClient.d__19.MoveNext() in C:\projects\barion-dotnet\BarionClientLibrary\BarionClient.cs:line 188 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at BarionClientLibrary.BarionClient.d__18.MoveNext() in C:\projects\barion-dotnet\BarionClientLibrary\BarionClient.cs:line 157 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at BarionClientLibrary.BarionClient.d__16.MoveNext() in C:\projects\barion-dotnet\BarionClientLibrary\BarionClient.cs:line 125 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at BarionClientLibrary.BarionClient.d__151.MoveNext() in C:\projects\barion-dotnet\BarionClientLibrary\BarionClient.cs:line 115 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at Package.buyTicket.d__6.MoveNext()

Van valami ötletetek?

Köszönöm,
István

get "nullified"

Target .NET Core 3 and start using nullable reference types in the project

Unit tesztelhetőség

Szeretném mock-olni unit teszt alatt a BarionClient objectumot de nincs interface-elve, lehetséges lenne rátenni?
Másik probléma teszt alatt hogy a BarionOperationResult IsOperationSuccessful nem irható tulajdonság, igy nem tudom variálni, azt hiszem lehetne mock-olni ha egy virtual kulcs lenne rajta, vagy lehetne egy konstruktort betenni, amivel lehet állítani ezt a property-t

Problem with BarionClient.ExecuteAsync - Error converting value "BankTransfer"

Hello,

I have a problem with BarionClient version 2.0.0.6.
After checking payment state using the code:

var getPaymentState = new GetPaymentStateOperation
{
PaymentId = paymentId;
}
using var barionClient = new BarionClient(barionSetting);
var result = await barionClient.ExecuteAsync(getPaymentState);

I get the error:

Newtonsoft.Json.JsonSerializationException: Error converting value \"BankTransfer\" to type 'System.Nullable`1[BarionClientLibrary.Operations.Common.FundingSourceType]'. Path 'FundingSource', line 1, position 318. 
 ---> System.ArgumentException: Requested value 'BankTransfer' was not found.\r\n at 

 Newtonsoft.Json.Utilities.EnumUtils.ParseEnum(Type enumType, String value, Boolean disallowNumber)\r\n at 
 Newtonsoft.Json.Converters.StringEnumConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)\r\n   
   --- End of inner exception stack trace ---\r\n at 
   Newtonsoft.Json.Converters.StringEnumConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)\r\n at 
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)\r\n  at 
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)\r\n at 
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)\r\n at 
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)\r\n at 
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)\r\n at 
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)\r\n at 
   Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)\r\n at 
   Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)\r\n at 
   BarionClientLibrary.BarionClient.CreateResultFromResponseMessage(HttpResponseMessage responseMessage, BarionOperation operation)\r\n at BarionClientLibrary.BarionClient.SendWithRetry(BarionOperation operation, CancellationToken cancellationToken)\r\n at 
   BarionClientLibrary.BarionClient.ExecuteAsync(BarionOperation operation, CancellationToken cancellationToken)\r\n at 
   BarionClientLibrary.BarionClient.ExecuteAsync(BarionOperation operation)\r\n at 

Could you please look into it? Thank you.

Marek

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.