Adamw has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/108815


Change subject: normalize amount
......................................................................

normalize amount

Change-Id: If6579c59c59d8e320d4460cfdd88e7a5633821ad
---
M PaymentProviders/GlobalCollect/ExpatriatedMessages/GlobalCollectMessage.php
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/SmashPig 
refs/changes/15/108815/1

diff --git 
a/PaymentProviders/GlobalCollect/ExpatriatedMessages/GlobalCollectMessage.php 
b/PaymentProviders/GlobalCollect/ExpatriatedMessages/GlobalCollectMessage.php
index 5555bbf..0129d42 100644
--- 
a/PaymentProviders/GlobalCollect/ExpatriatedMessages/GlobalCollectMessage.php
+++ 
b/PaymentProviders/GlobalCollect/ExpatriatedMessages/GlobalCollectMessage.php
@@ -42,6 +42,9 @@
                if ( !property_exists( $queueMsg, 'email' ) ) {
                        $queueMsg->email = '[email protected]';
                }
+               if ( property_exists( $queueMsg, 'gross' ) ) {
+                       $queueMsg->gross = round( $queueMsg->gross / 100.0, 2 );
+               }
 
                $queueMsg->gateway = 'globalcollect';
                $queueMsg->correlationId = 
"{$queueMsg->gateway}-{$queueMsg->gateway_txn_id}";

-- 
To view, visit https://gerrit.wikimedia.org/r/108815
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If6579c59c59d8e320d4460cfdd88e7a5633821ad
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/SmashPig
Gerrit-Branch: master
Gerrit-Owner: Adamw <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to