r101957 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101956‎ | r101957 | r101958 >
Date:05:19, 4 November 2011
Author:jpostlethwaite
Status:ok (Comments)
Tags:fundraising 
Comment:
Added defineErrorMap().
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro.adapter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro.adapter.php
@@ -15,6 +15,20 @@
1616 );
1717 }
1818
 19+ /**
 20+ * Define error_map
 21+ *
 22+ * @todo
 23+ * - Add: Error messages
 24+ * - error_map is not used by PayflowProAdapter
 25+ */
 26+ public function defineErrorMap() {
 27+
 28+ $this->error_map = array(
 29+ 0 => 'payflowpro_gateway-response-default',
 30+ );
 31+ }
 32+
1933 function defineVarMap() {
2034 $this->var_map = array(
2135 'ACCT' => 'card_num',

Follow-up revisions

RevisionCommit summaryAuthorDate
r102236MFT r90286, r100671, r100837, r100950, r101060, r101063, r101064, r101073, r1......khorn03:06, 7 November 2011
r102237MFT r90286, r100671, r100837, r100950, r101060, r101063, r101064, r101073, r1......khorn03:07, 7 November 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r101956Added $error_map, getErrorMap(), getErrorMapByCodeAndTranslate(), getTransact...jpostlethwaite05:18, 4 November 2011

Comments

#Comment by Khorn (WMF) (talk | contribs)   22:15, 5 November 2011

This probably will be used in the future, if you have developed a universal mechanism for doing this. :)

Status & tagging log