Cdentinger has uploaded a new change for review.
https://gerrit.wikimedia.org/r/278217
Change subject: move paypal payment methods
......................................................................
move paypal payment methods
Change-Id: Idccf48a4b7c754323a1a885be1e7b9d760aa04ee
---
A paypal_gateway/config/payment_methods.yaml
M paypal_gateway/paypal.adapter.php
2 files changed, 5 insertions(+), 6 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface
refs/changes/17/278217/1
diff --git a/paypal_gateway/config/payment_methods.yaml
b/paypal_gateway/config/payment_methods.yaml
new file mode 100644
index 0000000..baf581a
--- /dev/null
+++ b/paypal_gateway/config/payment_methods.yaml
@@ -0,0 +1 @@
+paypal: { }
diff --git a/paypal_gateway/paypal.adapter.php
b/paypal_gateway/paypal.adapter.php
index 4d8fd3a..996f466 100644
--- a/paypal_gateway/paypal.adapter.php
+++ b/paypal_gateway/paypal.adapter.php
@@ -188,6 +188,10 @@
$this->data_transformers = parent::getCoreDataTransformers();
}
+ function getBasedir() {
+ return __DIR__;
+ }
+
public function doPayment() {
if ( $this->getData_Unstaged_Escaped( 'recurring' ) ) {
$resultData = $this->do_transaction( 'DonateRecurring'
);
@@ -220,12 +224,6 @@
$this->finalizeInternalStatus(
FinalStatus::COMPLETE );
return $result;
}
- }
-
- public function definePaymentMethods() {
- $this->payment_methods = array(
- 'paypal' => array(),
- );
}
public function getCurrencies( $options = array() ) {
--
To view, visit https://gerrit.wikimedia.org/r/278217
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idccf48a4b7c754323a1a885be1e7b9d760aa04ee
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Cdentinger <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits