GithubHelp home page GithubHelp logo

spreehood / solidus_signifyd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from solidusio-contrib/solidus_signifyd

0.0 0.0 0.0 195 KB

Solidus integration for the Signifyd fraud check service.

License: BSD 3-Clause "New" or "Revised" License

Shell 0.31% JavaScript 0.65% Ruby 97.21% CSS 0.66% HTML 1.17%

solidus_signifyd's Introduction

Solidus Signifyd

CircleCI

Integration with Signifyd that implements a fraud check prior to marking a shipment as ready to be shipped.

  • All orders are sent to SIGNIFYD for scoring when they transition to complete.
  • Risk analysis is returned from SIGNIFYD via a webhook and added to order.
  • Orders with a risk score >= 500 (default review disposition threshhold)
    • Paid orders are marked ready to ship.
  • Orders with a risk score < 500
    • Are cancelled.
    • Risk analysis is displayed in admin.

Installation

In your Gemfile:

gem "solidus_signifyd"

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g solidus_signifyd:install

Create a SIGNIFYD test team within the SIGNIFYD account. The API key is listed on the Teams page after a team has been created.

Create SIGNIFYD notifications for each event type and provide your api_solidus_signifyd_orders_path. To work with external webhook in local development you may need to change the rails server default host and enable port forwarding or setup a reverse SSH tunnel.

http://www.example.com/api/solidus_signifyd/orders

Cases can be inspected in the SIGNIFYD web console.

Configuration

api_key

Type: string

SIGNIFYD team API key.

exclude_store_credit_orders

Type: boolean Default: false

By default, even orders which are fully paid with store credit are sent to SIGNIFYD. Since this could result in unnecessary charges to a user who is on a "flat rate" plan, we provide the option to skip these orders.

signifyd_score_threshold

Type: integer Default: 500

Automatic approval is granted to orders which have a good "reviewDisposition" or have a score greater than the signifyd_score_threshold.

Risky Orders

Flagging a case as bad in the SIGNIFYD web console will associate a fraudulent case with the order's email. This will cause future orders to drop below the reviewDisposition threshhold of 500 and allow you to inspect a risky order.

Testing

First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.

bundle exec rake

solidus_signifyd's People

Contributors

jhawthorn avatar sinetheta avatar athal7 avatar jordan-brough avatar kennyadsl avatar aldesantis avatar adammathys avatar senjai avatar cpfergus1 avatar allisonlarson avatar magnusvk avatar aitbw avatar gvaughn avatar gmacdougall avatar waiting-for-dev avatar bosskovic avatar plongyear avatar richardnuno avatar embold-tyler avatar dependabot-preview[bot] 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.