Index: trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect.adapter.php |
— | — | @@ -1,5 +1,25 @@ |
2 | 2 | <?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 | + */ |
3 | 19 | |
| 20 | +/** |
| 21 | + * GlobalCollectAdapter |
| 22 | + * |
| 23 | + */ |
4 | 24 | class GlobalCollectAdapter extends GatewayAdapter { |
5 | 25 | const GATEWAY_NAME = 'Global Collect'; |
6 | 26 | const IDENTIFIER = 'globalcollect'; |
— | — | @@ -411,6 +431,14 @@ |
412 | 432 | //'forms' => array( 'Gateway_Form_TwoStepAmount', ), |
413 | 433 | ); |
414 | 434 | |
| 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 | + |
415 | 443 | // Real Time Bank Transfers |
416 | 444 | $this->payment_methods['rtbt'] = array( |
417 | 445 | 'label' => 'Real time bank transfer', |
— | — | @@ -630,6 +658,19 @@ |
631 | 659 | ); |
632 | 660 | |
633 | 661 | /* |
| 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 | + /* |
634 | 675 | * Real time bank transfers |
635 | 676 | */ |
636 | 677 | |
— | — | @@ -1510,6 +1551,13 @@ |
1511 | 1552 | |
1512 | 1553 | break; |
1513 | 1554 | |
| 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 | + |
1514 | 1562 | /* Real time bank transfer */ |
1515 | 1563 | case 'rtbt_nordea_sweden': |
1516 | 1564 | case 'rtbt_enets': |