r70926 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70925‎ | r70926 | r70927 >
Date:01:30, 12 August 2010
Author:awjrichards
Status:ok
Tags:
Comment:
Added some comments/install/usage info for payflow pro gateway extras
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/extras/conversion_log/conversion_log.php (modified) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/extras/extras.php (modified) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/extras/minfraud/minfraud.php (modified) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/extras/recaptcha/recaptcha.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/extras/minfraud/minfraud.php
@@ -1,6 +1,19 @@
22 <?php
33 /**
44 * 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
518 */
619
720 $dir = dirname( __FILE__ ) . "/";
Index: trunk/extensions/DonationInterface/payflowpro_gateway/extras/conversion_log/conversion_log.php
@@ -1,6 +1,11 @@
22 <?php
33 /**
44 * 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
510 */
611 require_once( dirname( __FILE__ ) . "/../extras.php" );
712 class PayflowProGateway_Extras_ConversionLog extends PayflowProGateway_Extras {
Index: trunk/extensions/DonationInterface/payflowpro_gateway/extras/recaptcha/recaptcha.php
@@ -1,6 +1,15 @@
22 <?php
33 /**
44 * 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;
514 */
615
716 require_once( dirname( __FILE__ ) . "/../extras.php" );
Index: trunk/extensions/DonationInterface/payflowpro_gateway/extras/extras.php
@@ -1,4 +1,13 @@
22 <?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+ */
312
413 abstract class PayflowProGateway_Extras {
514 /**

Status & tagging log