Index: branches/fundraising/extensions/DonationInterface/globalcollect_gateway/globalcollect.adapter.php |
— | — | @@ -31,6 +31,15 @@ |
32 | 32 | $this->postdata['expiry'] = $this->postdata['expiration']; //. ($this->postdata['year'] % 100); |
33 | 33 | $this->postdata['card_num'] = str_replace(' ', '', $this->postdata['card_num']); |
34 | 34 | |
| 35 | + $returnto = ''; |
| 36 | + if (array_key_exists('returnto', $this->postdata)){ |
| 37 | + $returnto = $this->postdata['returnto']; |
| 38 | + } else { |
| 39 | + $returnto = $this->postdatadefaults['returnto']; |
| 40 | + } |
| 41 | + |
| 42 | + $this->postdata['returnto'] = $returnto . "?order_id=" . $this->postdata['order_id']; |
| 43 | + |
35 | 44 | } |
36 | 45 | |
37 | 46 | function defineAccountInfo() { |
— | — | @@ -101,9 +110,9 @@ |
102 | 111 | 'COUNTRYCODE', |
103 | 112 | 'HOSTEDINDICATOR', |
104 | 113 | 'RETURNURL', |
105 | | - 'CVV', |
106 | | - 'EXPIRYDATE', |
107 | | - 'CREDITCARDNUMBER', |
| 114 | +// 'CVV', |
| 115 | +// 'EXPIRYDATE', |
| 116 | +// 'CREDITCARDNUMBER', |
108 | 117 | 'FIRSTNAME', |
109 | 118 | 'SURNAME', |
110 | 119 | 'STREET', |
Index: branches/fundraising/extensions/DonationInterface/gateway_common/gateway.adapter.php |
— | — | @@ -135,6 +135,7 @@ |
136 | 136 | 'country' => 'US', |
137 | 137 | 'returnto' => $returnto, |
138 | 138 | 'user_ip' => ( self::getGlobal( 'Test' ) ) ? '12.12.12.12' : wfGetIP(), // current user's IP address |
| 139 | + 'card_type' => 'visa', |
139 | 140 | ); |
140 | 141 | } |
141 | 142 | |