r102681 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102680‎ | r102681 | r102682 >
Date:20:22, 10 November 2011
Author:jpostlethwaite
Status:ok
Tags:fundraising 
Comment:
Implementing BPAY payment method.
Modified paths:
  • /trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect.adapter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect.adapter.php
@@ -1,5 +1,25 @@
22 <?php
 3+/**
 4+ * Wikimedia Foundation
 5+ *
 6+ * LICENSE
 7+ *
 8+ * This program is free software; you can redistribute it and/or modify
 9+ * it under the terms of the GNU General Public License as published by
 10+ * the Free Software Foundation; either version 2 of the License, or
 11+ * (at your option) any later version.
 12+ *
 13+ * This program is distributed in the hope that it will be useful,
 14+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
 15+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 16+ * GNU General Public License for more details.
 17+ *
 18+ */
319
 20+/**
 21+ * GlobalCollectAdapter
 22+ *
 23+ */
424 class GlobalCollectAdapter extends GatewayAdapter {
525 const GATEWAY_NAME = 'Global Collect';
626 const IDENTIFIER = 'globalcollect';
@@ -411,6 +431,14 @@
412432 //'forms' => array( 'Gateway_Form_TwoStepAmount', ),
413433 );
414434
 435+ // Bank Transfers
 436+ $this->payment_methods['obt'] = array(
 437+ 'label' => 'Online bank transfer',
 438+ 'types' => array( 'bpay', ),
 439+ 'validation' => array( 'creditCard' => false, )
 440+ //'forms' => array( 'Gateway_Form_TwoStepAmount', ),
 441+ );
 442+
415443 // Real Time Bank Transfers
416444 $this->payment_methods['rtbt'] = array(
417445 'label' => 'Real time bank transfer',
@@ -630,6 +658,19 @@
631659 );
632660
633661 /*
 662+ * Online bank transfers
 663+ */
 664+
 665+ // Online Bank Transfer Bpay
 666+ $this->payment_submethods['bpay'] = array(
 667+ 'paymentproductid' => 500,
 668+ 'label' => 'Online Bank Transfer: Bpay',
 669+ 'group' => 'obt',
 670+ 'validation' => array(),
 671+ 'keys' => array(),
 672+ );
 673+
 674+ /*
634675 * Real time bank transfers
635676 */
636677
@@ -1510,6 +1551,13 @@
15111552
15121553 break;
15131554
 1555+ /* Online bank transfer */
 1556+ case 'bpay':
 1557+ $this->staged_data['payment_product'] = $this->payment_submethods[ $payment_submethod ]['paymentproductid'];
 1558+ $this->var_map['PAYMENTPRODUCTID'] = 'payment_product';
 1559+ break;
 1560+
 1561+
15141562 /* Real time bank transfer */
15151563 case 'rtbt_nordea_sweden':
15161564 case 'rtbt_enets':

Follow-up revisions

RevisionCommit summaryAuthorDate
r103847MFT r102338, r102681, r102685, r102810, r102828, r102829, r102832, r102836, r...khorn22:30, 21 November 2011
r103848MFT r102338, r102681, r102685, r102810, r102828, r102829, r102832, r102836, r...khorn22:31, 21 November 2011

Status & tagging log