mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Note about accessing the UTM data in the BaseDriver.php
This commit is contained in:
parent
f64b0b3d19
commit
7eb6925c8e
@ -244,6 +244,9 @@ class BaseDriver extends AbstractPaymentDriver
|
||||
if (property_exists($this->payment_hash->data, 'billing_context')) {
|
||||
$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 utm data => session()->get('utm-' . CAMPAIGN_HASH);
|
||||
|
||||
(new SubscriptionService($billing_subscription))->completePurchase($this->payment_hash);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user