Index: trunk/extensions/DonationInterface/gateway_common/gateway.adapter.php |
— | — | @@ -1285,7 +1285,7 @@ |
1286 | 1286 | $utm_source_parts[2] = 'pp'; |
1287 | 1287 | $data['utm_source'] = implode( ".", $utm_source_parts ); |
1288 | 1288 | $data['gateway'] = 'paypal'; |
1289 | | - $data['currency_code'] = isset( $data['currency'] ) ? $data['currency'] : ''; |
| 1289 | + $data['currency_code'] = isset( $data['currency'] ) ? $data['currency'] : 'USD'; |
1290 | 1290 | |
1291 | 1291 | // Add our response vars to the data object. |
1292 | 1292 | $this->dataObj->addData( $data ); |
Index: trunk/extensions/DonationInterface/gateway_common/DonationData.php |
— | — | @@ -56,7 +56,7 @@ |
57 | 57 | 'card_type' => $wgRequest->getText( 'card_type' ), |
58 | 58 | 'expiration' => $wgRequest->getText( 'mos' ) . substr( $wgRequest->getText( 'year' ), 2, 2 ), |
59 | 59 | 'cvv' => $wgRequest->getText( 'cvv' ), |
60 | | - 'currency' => $wgRequest->getText( 'currency_code' ), |
| 60 | + 'currency' => $wgRequest->getText( 'currency_code', 'USD' ), |
61 | 61 | 'payment_method' => $wgRequest->getText( 'payment_method' ), |
62 | 62 | 'payment_submethod' => $wgRequest->getText( 'payment_submethod', null ), // Used by GlobalCollect for payment types |
63 | 63 | 'issuer_id' => $wgRequest->getText( 'issuer_id' ), |