Index: trunk/extensions/DonationInterface/payflowpro_gateway/extras/minfraud/minfraud.php |
— | — | @@ -1,6 +1,19 @@ |
2 | 2 | <?php |
3 | 3 | /** |
4 | 4 | * Validates a transaction against MaxMind's minFraud service |
| 5 | + * |
| 6 | + * To install: |
| 7 | + * require_once( "$IP/extensions/DonationInterface/payflowpro_gateway/extras/minfraud/minfraud.php" ); |
| 8 | + * |
| 9 | + * In LocalSettings.php |
| 10 | + * $wgPayflowExtraMinFraud = new PayflowProGateway_Extras_MinFraud( '<your minfraud license key>' ) |
| 11 | + * $wgMinFraudActionRanges = array( //sets the risk score ranges that will cause a particular 'action', these should not overlap |
| 12 | + * 'process' => array( <min risk score>, <max risk score> ), |
| 13 | + * 'review' => array( <min risk score>, <max risk score> ), |
| 14 | + * 'challenge' => ... |
| 15 | + * 'reject' => ... |
| 16 | + * ); |
| 17 | + * $wgHooks["PayflowGatewayValidate"][] = array( $wgPayflowExtraMinFraud, "validate" ); // sets minfraud as a validator for transactions |
5 | 18 | */ |
6 | 19 | |
7 | 20 | $dir = dirname( __FILE__ ) . "/"; |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/extras/conversion_log/conversion_log.php |
— | — | @@ -1,6 +1,11 @@ |
2 | 2 | <?php |
3 | 3 | /** |
4 | 4 | * Extra to log payflow conversion during post processing hook |
| 5 | + * |
| 6 | + * To install: |
| 7 | + * require_once( "$IP/extensions/DonationInterface/payflowpro_gateway/extras/conversion_log/conversion_log.php" ) |
| 8 | + * In LocalSettings.php: |
| 9 | + * $wgHooks["PayflowGatewayPostProcess"][] = array( new PayflowProGateway_Extras_ConversionLog, 'post_process' ); // sets this script to log some information after a transaction has been processed by PayflowPro |
5 | 10 | */ |
6 | 11 | require_once( dirname( __FILE__ ) . "/../extras.php" ); |
7 | 12 | class PayflowProGateway_Extras_ConversionLog extends PayflowProGateway_Extras { |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/extras/recaptcha/recaptcha.php |
— | — | @@ -1,6 +1,15 @@ |
2 | 2 | <?php |
3 | 3 | /** |
4 | 4 | * Validates a transaction against MaxMind's minFraud service |
| 5 | + * |
| 6 | + * To install: |
| 7 | + * require_once( "$IP/extensions/recaptcha/ReCaptcha.php" ); |
| 8 | + * |
| 9 | + * You will need to get reCaptcha public/private keys (http://www.google.com/recaptcha/whyrecaptcha) |
| 10 | + * In LocalSettings.php: |
| 11 | + * $recaptcha_public_key = '<key>'; |
| 12 | + * $recaptcha_private_key = '<key>'; |
| 13 | + * $wgPayflowCaptcha = new $wgCaptchaClass; |
5 | 14 | */ |
6 | 15 | |
7 | 16 | require_once( dirname( __FILE__ ) . "/../extras.php" ); |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/extras/extras.php |
— | — | @@ -1,4 +1,13 @@ |
2 | 2 | <?php |
| 3 | +/** |
| 4 | + * An abstract class for payflowprog gateway 'extras' |
| 5 | + * |
| 6 | + * To enable logging: |
| 7 | + * $wgPayflowGatewayLog = '<path to log file>'; |
| 8 | + * |
| 9 | + * To make hashing salted (you want to do this): |
| 10 | + * $wgPayflowGatewaySalt = '<something hard to guess>'; |
| 11 | + */ |
3 | 12 | |
4 | 13 | abstract class PayflowProGateway_Extras { |
5 | 14 | /** |