Git Product home page Git Product logo

kount-ris-dotnet-sdk's People

Contributors

boyankukushev avatar dharp-kount avatar galin-georgiev avatar gallilama avatar leykov avatar mmewara avatar rjha-godaddy avatar rpettinger avatar sanjeevitt avatar sebastianhoff avatar shermankester avatar sveneyem avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kount-ris-dotnet-sdk's Issues

new Inquiry with checkConfiguration = false

create new Inquiry instance with parameter checkConfiguration = false throw exeption in net core app (withoutn app.config) for config for connectTimeOut.

if (checkConfiguration)
{
this.CheckConfigurationParameter(configuration.MerchantId, "MerchantId");
this.CheckConfigurationParameter(configuration.URL, "URL");
this.CheckConfigurationParameter(configuration.ConfigKey, "ConfigKey");
}
this.CheckConfigurationParameter(configuration.ConnectTimeout, "ConnectTimeout");

Object reference not set to an instance of an object. at Kount.Ris.Request.GetResponse(Boolean validate) in ...\kount-ris-dotnet-sdk-7.0.0\SDK\Kount\Ris\Request.cs:line 175

This exception we're seeing in production is difficult to reproduce, but it looks like some of our inputs into the SDK are binding a null value. The SDK doesn't check this and blindly attempts to convert it to a string. I suggest some simple boilerplate:

`// boilerplate value
string value = ( param.Key != null )
? param.Key.ToString()
: string.Empty;

post = post + HttpUtility.UrlEncode( param.Key.ToString() ) +
"=" + HttpUtility.UrlEncode( value ) + "&";

if ( param.Key.ToString().Equals( "PTOK" ) )
{
value = "payment token hidden";
}`

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.