Index: trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect_gateway.body.php |
— | — | @@ -84,6 +84,10 @@ |
85 | 85 | // dispatch forms/handling |
86 | 86 | if ( $this->adapter->checkTokens() ) { |
87 | 87 | |
| 88 | + //TODO: Get rid of $data out here completely, by putting this logic inside the adapter somewhere. |
| 89 | + //All we seem to be doing with it now, is internal adapter logic outside of the adapter. |
| 90 | + $data = $this->adapter->getDisplayData(); |
| 91 | + |
88 | 92 | if ( $this->adapter->posted ) { |
89 | 93 | |
90 | 94 | // The form was submitted and the payment method has been set |
— | — | @@ -93,10 +97,6 @@ |
94 | 98 | * An invalid $payment_method will cause an error. |
95 | 99 | */ |
96 | 100 | |
97 | | - //TODO: Get rid of $data out here completely, by putting this logic inside the adapter somewhere. |
98 | | - //All we seem to be doing with it now, is internal adapter logic outside of the adapter. |
99 | | - $data = $this->adapter->getDisplayData(); |
100 | | - |
101 | 101 | $payment_method = ( isset( $data['payment_method'] ) && !empty( $data['payment_method'] ) ) ? $data['payment_method'] : 'cc'; |
102 | 102 | $payment_submethod = ( isset( $data['payment_submethod'] ) && !empty( $data['payment_submethod'] ) ) ? $data['payment_submethod'] : ''; |
103 | 103 | |