r58554 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58553‎ | r58554 | r58555 >
Date:18:40, 4 November 2009
Author:tomasz
Status:ok
Tags:
Comment:
Adding toggle for testing mode
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php
@@ -438,7 +438,8 @@
439439 $headers[] = 'X-VPS-Request-ID:' . $payflow_data['order_id'];
440440
441441 $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 ] );
443444 curl_setopt( $ch, CURLOPT_HTTPHEADER, $headers );
444445 curl_setopt( $ch, CURLOPT_USERAGENT, $user_agent );
445446 curl_setopt( $ch, CURLOPT_HEADER, 1 );

Follow-up revisions

RevisionCommit summaryAuthorDate
r58555Pulling in r58554tomasz18:46, 4 November 2009

Status & tagging log