From 600e0c62a820cb8f589fad969072ab4cfe88dad4 Mon Sep 17 00:00:00 2001
From: Matthew Wire <mjw@mjwconsult.co.uk>
Date: Sat, 18 Sep 2021 12:30:43 +0100
Subject: [PATCH] Define contributionRecur property on IPN class

---
 CRM/Core/Payment/MJWIPNTrait.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/CRM/Core/Payment/MJWIPNTrait.php b/CRM/Core/Payment/MJWIPNTrait.php
index e02214e..125241f 100644
--- a/CRM/Core/Payment/MJWIPNTrait.php
+++ b/CRM/Core/Payment/MJWIPNTrait.php
@@ -34,6 +34,12 @@ trait CRM_Core_Payment_MJWIPNTrait {
    */
   protected $contribution_recur_id = NULL;
 
+  /**
+   * The recurring contribution detail (as retrieved by API4)
+   * @var array
+   */
+  protected $contributionRecur = [];
+
   /**
    *  The IPN event type
    * @var string
-- 
GitLab