diff --git a/app/PaymentDrivers/BaseDriver.php b/app/PaymentDrivers/BaseDriver.php index 96352f0c3d50..a78ba36420e9 100644 --- a/app/PaymentDrivers/BaseDriver.php +++ b/app/PaymentDrivers/BaseDriver.php @@ -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); }