Awight has uploaded a new change for review.
https://gerrit.wikimedia.org/r/234470
Change subject: Correct typos
......................................................................
Correct typos
Change-Id: I1e16c35dc60023ac48ce2d77cc31d961862ea30d
---
M globalcollect_gateway/scripts/refund.php
1 file changed, 11 insertions(+), 9 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface
refs/changes/70/234470/1
diff --git a/globalcollect_gateway/scripts/refund.php
b/globalcollect_gateway/scripts/refund.php
index aefa1ad..52e36b1 100644
--- a/globalcollect_gateway/scripts/refund.php
+++ b/globalcollect_gateway/scripts/refund.php
@@ -30,20 +30,22 @@
$this->error( 'Could not find refund file: ' . $filename, true );
}
while ( $refund = fgetcsv( $file ) ) {
- if ( count( $refund !== 7 ) ) {
+ if ( count( $refund ) !== 7 ) {
$this->error( 'Refund lines must have exactly 7
fields', true );
}
$oid = $refund[0];
$gateway_opts = array(
'batch_mode' => true,
- 'order_id' => $oid,
- 'merchant_reference' => $refund[1],
- 'effort_id' => $refund[2],
- 'payment_method' => 'cc',
- 'payment_submethod' => $refund[3],
- 'country' => $refund[4],
- 'currency_code' => $refund[5],
- 'amount' => $refund[6],
+ 'external_data' => array(
+ 'order_id' => $oid,
+ 'merchant_reference' => $refund[1],
+ 'effort_id' => $refund[2],
+ 'payment_method' => 'cc',
+ 'payment_submethod' => $refund[3],
+ 'country' => $refund[4],
+ 'currency_code' => $refund[5],
+ 'amount' => $refund[6],
+ ),
);
$this->output( "Refunding transaction $oid" );
--
To view, visit https://gerrit.wikimedia.org/r/234470
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1e16c35dc60023ac48ce2d77cc31d961862ea30d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Awight <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits