CRM-15259 use same method to determine whether to show updateBilling link as whether...
authorEileen McNaughton <eileen@fuzion.co.nz>
Mon, 8 Sep 2014 10:52:20 +0000 (22:52 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Mon, 8 Sep 2014 10:55:13 +0000 (22:55 +1200)
CRM/Core/Payment.php

index 56249840903185d4f2f806e43a08b0e0daa56e21..a7f21fde65ced9332a25850779b9afd1318d88e2 100644 (file)
@@ -315,8 +315,7 @@ abstract class CRM_Core_Payment {
       $url = 'civicrm/contribute/unsubscribe';
     }
     elseif ($action == 'billing') {
-      //in notify mode don't return the update billing url
-      if ($this->_paymentProcessor['billing_mode'] == self::BILLING_MODE_NOTIFY) {
+      if (!$this->isSupported('updateSubscriptionBillingInfo')) {
         return NULL;
       }
       $url = 'civicrm/contribute/updatebilling';