Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php |
— | — | @@ -438,7 +438,8 @@ |
439 | 439 | $headers[] = 'X-VPS-Request-ID:' . $payflow_data['order_id']; |
440 | 440 | |
441 | 441 | $ch = curl_init(); |
442 | | - curl_setopt( $ch, CURLOPT_URL, $payflow_data['testingurl'] ); |
| 442 | + $paypalPostTo = isset ( $wgDonationTestingMode ) ? 'testing' : 'paypal'; |
| 443 | + curl_setopt( $ch, CURLOPT_URL, $payflow_data[ $paypalPostTo ] ); |
443 | 444 | curl_setopt( $ch, CURLOPT_HTTPHEADER, $headers ); |
444 | 445 | curl_setopt( $ch, CURLOPT_USERAGENT, $user_agent ); |
445 | 446 | curl_setopt( $ch, CURLOPT_HEADER, 1 ); |