1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Update notes about accessign campaign data in BaseDriver.php

This commit is contained in:
Benjamin Beganović 2021-05-29 13:19:36 +02:00
parent 7eb6925c8e
commit b20b275675

View File

@ -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);