Ejegg has uploaded a new change for review.

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

Change subject: Add Alipay payment instrument
......................................................................

Add Alipay payment instrument

Change-Id: I717b749f1449e0f03650d145adc866fad638ccb2
---
M sites/all/modules/globalcollect_audit/globalcollect_audit.module
M sites/all/modules/wmf_civicrm/wmf_civicrm.install
M sites/all/modules/wmf_civicrm/wmf_civicrm.module
3 files changed, 19 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm 
refs/changes/91/182991/1

diff --git a/sites/all/modules/globalcollect_audit/globalcollect_audit.module 
b/sites/all/modules/globalcollect_audit/globalcollect_audit.module
index fcd3eec..c623cc8 100644
--- a/sites/all/modules/globalcollect_audit/globalcollect_audit.module
+++ b/sites/all/modules/globalcollect_audit/globalcollect_audit.module
@@ -1715,6 +1715,11 @@
                        'code' => 'ew_yandex',
                        'group' => 'ew',
                ),
+               861 => array(
+                       //alipay
+                       'code' => 'ew_alipay',
+                       'group' => 'ew',
+               ),
                500 => array(
                        //bpay
                        'code' => 'bpay',
diff --git a/sites/all/modules/wmf_civicrm/wmf_civicrm.install 
b/sites/all/modules/wmf_civicrm/wmf_civicrm.install
index e0fe651..e1d492b 100644
--- a/sites/all/modules/wmf_civicrm/wmf_civicrm.install
+++ b/sites/all/modules/wmf_civicrm/wmf_civicrm.install
@@ -27,6 +27,7 @@
     wmf_civicrm_update_7023();
     wmf_civicrm_update_7024();
     wmf_civicrm_update_7025();
+    wmf_civicrm_update_7026();
 }
 
 /**
@@ -1115,3 +1116,13 @@
             add index entity_id2 (entity_id2),
             add index cacheKey (cacheKey)");
 }
+
+/**
+ * Add Alipay to payment_instrument
+ */
+function wmf_civicrm_update_7026()
+{
+       wmf_civicrm_create_option_values( 'payment_instrument', array( 'Alipay' 
) );
+
+    return array();
+}
diff --git a/sites/all/modules/wmf_civicrm/wmf_civicrm.module 
b/sites/all/modules/wmf_civicrm/wmf_civicrm.module
index 600aa1b..12e6547 100644
--- a/sites/all/modules/wmf_civicrm/wmf_civicrm.module
+++ b/sites/all/modules/wmf_civicrm/wmf_civicrm.module
@@ -592,6 +592,9 @@
                     case 'ew_yandex':
                         $payment_instrument = 'Yandex';
                         break;
+                    case 'ew_alipay':
+                        $payment_instrument = 'Alipay';
+                        break;
                 }
                 break;
             case 'obt':

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I717b749f1449e0f03650d145adc866fad638ccb2
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Ejegg <[email protected]>

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

Reply via email to