Index: branches/fundraising/extensions/DonationInterface/globalcollect_gateway/globalcollect.adapter.php |
— | — | @@ -13,7 +13,13 @@ |
14 | 14 | function stageData() { |
15 | 15 | $this->postdata['amount'] = $this->postdata['amount'] * 100; |
16 | 16 | |
17 | | - switch ( $this->postdata['card_type'] ) { |
| 17 | + $card_type = ''; |
| 18 | + if (array_key_exists('card_type', $this->postdata)){ |
| 19 | + $card_type = $this->postdata['card_type']; |
| 20 | + } else { |
| 21 | + $card_type = $this->postdatadefaults['card_type']; |
| 22 | + } |
| 23 | + switch ( $card_type ) { |
18 | 24 | case 'visa': |
19 | 25 | $this->postdata['card_type'] = 1; |
20 | 26 | break; |