jenkins-bot has submitted this change and it was merged. 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(-) Approvals: Awight: Looks good to me, approved jenkins-bot: Verified 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: merged Gerrit-Change-Id: I29be7aef4d80a8967567adbd60cf4d6d34f695d6 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/DonationInterface Gerrit-Branch: master Gerrit-Owner: Ejegg <eeggles...@wikimedia.org> Gerrit-Reviewer: AndyRussG <andrew.green...@gmail.com> Gerrit-Reviewer: Awight <awi...@wikimedia.org> Gerrit-Reviewer: Cdentinger <cdentin...@wikimedia.org> Gerrit-Reviewer: Ssmith <ssm...@wikimedia.org> Gerrit-Reviewer: XenoRyet <dkozlow...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits