1 package Business::FraudDetect;
5 use vars qw / $VERSION @ISA /;
8 @ISA = qw / Business::OnlinePayment /;
16 Business::FraudDetect - A cohort to Business::OnlinePayment
20 my %processor_info = ( risk_Management => 'preCharge',
22 risk_management_params => {
23 preCharge_id => '1000000000000001',
24 preCharge_security1 => 'abcdef0123',
25 preCharge_security2 => '3210fedcba',
28 my $transaction = new Business::OnlinePayment($processor, %processor_info);
29 $transaction->content(
32 cardnumber => '1234123412341238',
36 $transaction->submit();
38 if($transaction->is_success()) {
39 print "Card processed successfully: ".$transaction->authorization()."\n";
41 print "Card was rejected: ".$transaction->error_message()."\n";
46 This is a module that adds functionality to Business::OnlinePayment. See L<Business::OnlinePayment>.
48 The user instantiates a Business::OnlinePayment object per usual, adding in three processor directives
52 =item * risk_Management
54 Which Fraud Detection module to use.
58 FraudDetection drivers are expected to return a numeric "risk" factor, this parameter allows you to set the threshold to reject the transaction based on that risk. Higher numbers are "riskier" transactions.
60 =item * risk_management_params
62 Driver-specific parameters. Extant module uses this to pass in identity/authorization credentials.
66 The $tx->submit() method is overridden to interpose a FraudDetection phase. A subordinate object is created using the same content as the parent OnlinePayment object, and a I<Fraud Detect> action is run against that subordinate object. If the resulting fraud score is less than or equal to the maximum_risk parameter, the parent transaction will be allowed to proceed. Otherwise, a failure state will exist with a suitable error message.
70 This module provides no new methods. It does, however override the
71 submit method to interpose an additional Fraud Detection phase.
75 Lawrence Statton <lawrence@cluon.com>
79 THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
83 http://420.am/business-onlinepayment