Make the extension work with CiviSEPA 1.4.
This commit is contained in:
parent
e3836467cf
commit
5b55868d71
1 changed files with 14 additions and 3 deletions
|
@ -383,9 +383,20 @@ class CRM_Twingle_Form_Profile extends CRM_Core_Form {
|
||||||
// enabled.
|
// enabled.
|
||||||
if (
|
if (
|
||||||
CRM_Twingle_Submission::civiSepaEnabled()
|
CRM_Twingle_Submission::civiSepaEnabled()
|
||||||
&& CRM_Sepa_Logic_Settings::isSDD(array(
|
&& (
|
||||||
'payment_instrument_id' => $payment_instrument['value'],
|
(
|
||||||
))
|
method_exists('CRM_Sepa_Logic_PaymentInstruments', 'isSDD')
|
||||||
|
&& CRM_Sepa_Logic_PaymentInstruments::isSDD(array(
|
||||||
|
'payment_instrument_id' => $payment_instrument['value'],
|
||||||
|
))
|
||||||
|
)
|
||||||
|
|| (
|
||||||
|
method_exists('CRM_Sepa_Logic_Settings', 'isSDD')
|
||||||
|
&& CRM_Sepa_Logic_Settings::isSDD(array(
|
||||||
|
'payment_instrument_id' => $payment_instrument['value'],
|
||||||
|
))
|
||||||
|
)
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
if (!isset(self::$_paymentInstruments['sepa'])) {
|
if (!isset(self::$_paymentInstruments['sepa'])) {
|
||||||
self::$_paymentInstruments['sepa'] = E::ts('CiviSEPA');
|
self::$_paymentInstruments['sepa'] = E::ts('CiviSEPA');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue