[REF] Ensure that the Manaual Payment Processor sets the _paymentProcessor variable...
authorSeamus Lee <seamuslee001@gmail.com>
Thu, 18 Jun 2020 08:53:20 +0000 (18:53 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 18 Jun 2020 08:53:20 +0000 (18:53 +1000)
CRM/Core/Payment/Manual.php

index 0a311b48da916fbfd04420dec9c98312f15e220f..a2c7c5dd2593a0d65a0b9f9833a37007cd2a72c9 100644 (file)
@@ -23,6 +23,19 @@ class CRM_Core_Payment_Manual extends CRM_Core_Payment {
    */
   public function checkConfig() {}
 
+  /**
+   * Constructor.
+   */
+  public function __construct() {
+    $this->_paymentProcessor = [
+      'payment_type' => 0,
+      'billing_mode' => 0,
+      'id' => 0,
+      'url_recur' => '',
+      'is_recur' => 0,
+    ];
+  }
+
   /**
    * Get billing fields required for this processor.
    *