Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter.php |
— | — | @@ -101,7 +101,11 @@ |
102 | 102 | // card logos |
103 | 103 | $form .= '<tr>'; |
104 | 104 | $form .= '<td />'; |
105 | | - $form .= '<td>' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/credit_card_logos.gif" ) ) . '</td>'; |
| 105 | + if ( $this->form_data[ 'currency' ] == 'USD' ) { |
| 106 | + $form .= '<td>' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/credit_card_logos.gif" ) ) . '</td>'; |
| 107 | + } else { |
| 108 | + $form .= '<td>' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/credit_card_logos3.gif" ) ) . '</td>'; |
| 109 | + } |
106 | 110 | $form .= '</tr>'; |
107 | 111 | |
108 | 112 | // card number |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php |
— | — | @@ -222,7 +222,11 @@ |
223 | 223 | // card logos |
224 | 224 | $form .= '<tr>'; |
225 | 225 | $form .= '<td />'; |
226 | | - $form .= '<td>' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/credit_card_logos.gif" ) ) . '</td>'; |
| 226 | + if ( $this->form_data[ 'currency' ] == 'USD' ) { |
| 227 | + $form .= '<td>' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/credit_card_logos.gif" ) ) . '</td>'; |
| 228 | + } else { |
| 229 | + $form .= '<td>' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/credit_card_logos3.gif" ) ) . '</td>'; |
| 230 | + } |
227 | 231 | $form .= '</tr>'; |
228 | 232 | |
229 | 233 | // card number |