CRM-20413 fix to setting wrong payment_instrument_id, by passing responsibility to...
[civicrm-core.git] / CRM / Contribute / Form / ContributionBase.php
index 80644b80636f62823bc7839d942e0da1fcdbf560..7655c6a310064e5f7f5bdc667763c22107b9d43a 100644 (file)
@@ -187,6 +187,23 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form {
    */
   public $_isBillingAddressRequiredForPayLater;
 
+  /**
+   * Is this a backoffice form
+   * (this will affect whether paypal express code is displayed)
+   * @var bool
+   */
+  public $isBackOffice = FALSE;
+
+  /**
+   * Payment instrument if for the transaction.
+   *
+   * This will generally be drawn from the payment processor and is ignored for
+   * front end forms.
+   *
+   * @var int
+   */
+  public $paymentInstrumentID;
+
   /**
    * Set variables up before form is built.
    *