GithubHelp home page GithubHelp logo

ccfd-api-asp's Introduction

MaxMind minFraud ASP API

Example

See Example.asp for complete example how to use this API. This script can be run from the shell or from IIS.

API Documentation

set ccfs = new CreditCardFraudDetection

This creates a new CreditCardFraudDetection object. set is required since it is an object

ccfs.isSecure

If isSecure is set to 0 then it uses regular HTTP. If isSecure is set to 1 then it uses Secure HTTPS.

ccfs.input(dictionary)

Takes a dictionary object and uses it as input for the server. See http://dev.maxmind.com/minfraud for details on input fields.

ccfs.query()

Queries the server with the fields passed to the input method and stores the output.

set dictionary = ccfs.output()

Returns the output from the server as a dictionary object. set is required since it is an object. See http://dev.maxmind.com/minfraud for details on output fields.

Secure HTTPS

This script uses Microsoft's Msxml2.ServerXMLHTTP which has full support for SSL. SSL is enabled by default. You may disable it by setting:

ccfs.isSecure = 0

where ccfs is the CreditCardFraudDetection object.

Error Handling

Errors will be placed into a string value in the output dictionary object which can then be checked before processing the returned data.

Example:

    Dim ret
    Set ret = ccfs.output()
    if(ret.Item("err") <> "") then
        'handle error here
    else
        'Process data
    end if

A quick way to test the error handler is to modify the host list (Unable to find host), web-service URO (404 file not found or Invalid data returned), or set the timeout (Connection timed out) to a very low value (i.e. 0.01 seconds).


Copyright (c) 2004, Raging Creations Ltd.. Original PHP Code Copyright (c) 2004, MaxMind, Inc.

Converted by: Shaun Hawkes ([email protected]), August 15, 2004.

All rights reserved. This package is licensed under the GPL. For details see the LICENSE file.

ccfd-api-asp's People

Contributors

oschwald avatar borisz avatar

Watchers

Joey Hayes avatar

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.