Ejegg has uploaded a new change for review. https://gerrit.wikimedia.org/r/273515
Change subject: Add more Latin American methods for AstroPay ...................................................................... Add more Latin American methods for AstroPay New methods for each new credit card and cash payment type detailed in our master processor doc. Looks like we haven't been breaking out the bank transfer methods, so not creating those. Bug: T124323 Change-Id: Ic628306bd40809ccfc34178320b946ce61182d02 --- M sites/all/modules/wmf_civicrm/wmf_civicrm.install M sites/all/modules/wmf_civicrm/wmf_civicrm.module 2 files changed, 90 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm refs/changes/15/273515/1 diff --git a/sites/all/modules/wmf_civicrm/wmf_civicrm.install b/sites/all/modules/wmf_civicrm/wmf_civicrm.install index fcf45ef..9ae5e1c 100644 --- a/sites/all/modules/wmf_civicrm/wmf_civicrm.install +++ b/sites/all/modules/wmf_civicrm/wmf_civicrm.install @@ -51,6 +51,7 @@ wmf_civicrm_update_7120(); wmf_civicrm_update_7170(); wmf_civicrm_update_7180(); + wmf_civicrm_update_7185(); } /** @@ -1885,3 +1886,32 @@ v.name IS NULL "); } + +/** + * Add Latin American payment methods for AstroPay + */ +function wmf_civicrm_update_7185() { + $payment_instruments = array( + 'Credit Card: Elo', + 'Credit Card: HiperCard', + 'Credit Card: MercadoLivre', + 'Credit Card: Cabal', + 'Credit Card: Naranja', + 'Credit Card: Tarjeta Shopping', + 'Credit Card: Nativa', + 'Credit Card: Cencosud', + 'Credit Card: Argencard', + 'Credit Card: Webpay', + 'Banamex', + 'Bancomer', + 'Davivienda', + 'Efecty', + 'OXXO', + 'Pago Facil', + 'Red Pagos', + 'Rapi Pago', + 'Santander', + ); + wmf_civicrm_bootstrap_civi(); + wmf_civicrm_create_option_values( 'payment_instrument', $payment_instruments ); +} diff --git a/sites/all/modules/wmf_civicrm/wmf_civicrm.module b/sites/all/modules/wmf_civicrm/wmf_civicrm.module index 0a1167d..b6e35ba 100644 --- a/sites/all/modules/wmf_civicrm/wmf_civicrm.module +++ b/sites/all/modules/wmf_civicrm/wmf_civicrm.module @@ -601,6 +601,36 @@ case 'diners': $payment_instrument .= ': Diners'; break; + case 'elo': + $payment_instrument .= ': Elo'; + break; + case 'hiper': + $payment_instrument .= ': HiperCard'; + break; + case 'mercadolivre': + $payment_instrument .= ': MercadoLivre'; + break; + case 'cabal': + $payment_instrument .= ': Cabal'; + break; + case 'naranja': + $payment_instrument .= ': Naranja'; + break; + case 'shopping': + $payment_instrument .= ': Tarjeta Shopping'; + break; + case 'nativa': + $payment_instrument .= ': Nativa'; + break; + case 'cencosud': + $payment_instrument .= ': Cencosud'; + break; + case 'argen': + $payment_instrument .= ': Argencard'; + break; + case 'webpay': + $payment_instrument .= ': Webpay'; + break; } break; case 'dd': @@ -655,9 +685,9 @@ break; } break; - case 'stock': - $payment_instrument = 'Stock'; - break; + case 'stock': + $payment_instrument = 'Stock'; + break; case 'cash': $payment_instrument = 'Cash'; //'cash_boleto' - Only one right now. I assume there might be more later? @@ -665,6 +695,33 @@ case 'cash_boleto': $payment_instrument = 'Boleto'; break; + case 'cash_banamex': + $payment_instrument = 'Banamex'; + break; + case 'cash_bancomer': + $payment_instrument = 'Bancomer'; + break; + case 'cash_davivienda': + $payment_instrument = 'Davivienda'; + break; + case 'cash_efecty': + $payment_instrument = 'Efecty'; + break; + case 'cash_oxxo': + $payment_instrument = 'OXXO'; + break; + case 'cash_pago_facil': + $payment_instrument = 'Pago Facil'; + break; + case 'cash_red_pagos': + $payment_instrument = 'Red Pagos'; + break; + case 'cash_rapipago': + $payment_instrument = 'Rapi Pago'; + break; + case 'cash_santander': + $payment_instrument = 'Santander'; + break; } break; case 'payflowpro': -- To view, visit https://gerrit.wikimedia.org/r/273515 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic628306bd40809ccfc34178320b946ce61182d02 Gerrit-PatchSet: 1 Gerrit-Project: wikimedia/fundraising/crm Gerrit-Branch: master Gerrit-Owner: Ejegg <eeggles...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits