Ejegg has uploaded a new change for review.
https://gerrit.wikimedia.org/r/281459
Change subject: Add another method to GatewayType interface
......................................................................
Add another method to GatewayType interface
It's being used in AstroPayFinancialNumbers
Change-Id: I29be7aef4d80a8967567adbd60cf4d6d34f695d6
---
M gateway_common/GatewayType.php
M gateway_common/gateway.adapter.php
2 files changed, 8 insertions(+), 7 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface
refs/changes/59/281459/1
diff --git a/gateway_common/GatewayType.php b/gateway_common/GatewayType.php
index 9560858..b840d5b 100644
--- a/gateway_common/GatewayType.php
+++ b/gateway_common/GatewayType.php
@@ -245,6 +245,13 @@
public function getPaymentMethodMeta( $payment_method = null );
/**
+ * Get the name of the currently selected payment submethod
+ *
+ * @return string
+ */
+ public function getPaymentSubmethod();
+
+ /**
* Get metadata for the specified payment submethod
*
* @param string|null $payment_submethod Defaults to the current
submethod
@@ -254,7 +261,7 @@
public function getPaymentSubmethodMeta( $payment_submethod = null );
/**
- * Define payment methods
+ * Get the entire list of payment submethod definitions
*
* Not all payment submethods are available within an adapter
*
diff --git a/gateway_common/gateway.adapter.php
b/gateway_common/gateway.adapter.php
index a1f3023..8f74e78 100644
--- a/gateway_common/gateway.adapter.php
+++ b/gateway_common/gateway.adapter.php
@@ -1205,13 +1205,7 @@
return $this->payment_methods;
}
- /**
- * Get the payment submethod
- *
- * @return string
- */
public function getPaymentSubmethod() {
-
return $this->getData_Unstaged_Escaped( 'payment_submethod' );
}
--
To view, visit https://gerrit.wikimedia.org/r/281459
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I29be7aef4d80a8967567adbd60cf4d6d34f695d6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Ejegg <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits