Awight has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/341726 )

Change subject: [WIP] snippet for grading
......................................................................

[WIP] snippet for grading

Change-Id: Id6fbe69fa1ce2f0575a2deb2c4bbcdf8ab0d6898
---
M gateway_common/gateway.adapter.php
1 file changed, 13 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface 
refs/changes/26/341726/1

diff --git a/gateway_common/gateway.adapter.php 
b/gateway_common/gateway.adapter.php
index 84b980d..fe1cc9a 100644
--- a/gateway_common/gateway.adapter.php
+++ b/gateway_common/gateway.adapter.php
@@ -152,8 +152,19 @@
         * constants defined in @see FinalStatus
         */
        protected $final_status;
-       protected $validation_errors;
-       protected $manual_errors = array();
+       /**
+        * @var array Map of errors preventing this transaction from continuing.
+        *     Structure is like:
+        *     [
+        *         # An i18n key name to an error message that will display 
atop of
+        *         # the screen, indicating that something general needs fixing.
+        *         'general' => 'warning-currency-fallback',
+        *         # Example of a very specific error string that only the 
gateway
+        *         # could calculate.
+        *         'address' => 'key saying: "Address is required for 
E-Commerce transactions."',
+        *     ]
+        */
+       protected $errors = array();
 
        /**
         * Name of the current transaction.  Set via @see setCurrentTransaction

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id6fbe69fa1ce2f0575a2deb2c4bbcdf8ab0d6898
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Awight <awi...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to