From b20b27567528ed264b9448ad517aea00ac816c7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Sat, 29 May 2021 13:19:36 +0200 Subject: [PATCH] Update notes about accessign campaign data in BaseDriver.php --- app/PaymentDrivers/BaseDriver.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/PaymentDrivers/BaseDriver.php b/app/PaymentDrivers/BaseDriver.php index a78ba36420e9..be015b015ca6 100644 --- a/app/PaymentDrivers/BaseDriver.php +++ b/app/PaymentDrivers/BaseDriver.php @@ -245,6 +245,7 @@ class BaseDriver extends AbstractPaymentDriver $billing_subscription = \App\Models\Subscription::find($this->payment_hash->data->billing_context->subscription_id); // To access campaign hash => $this->payment_hash->data->billing_context->campaign; + // To access campaign data => Cache::get(CAMPAIGN_HASH) // To access utm data => session()->get('utm-' . CAMPAIGN_HASH); (new SubscriptionService($billing_subscription))->completePurchase($this->payment_hash);