Skip to content

Commit

Permalink
Fixed uninitiated variable in stripe processing
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebronner committed May 5, 2018
1 parent f2786f8 commit d425593
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Http/Requests/RecordStripeEvent.php
Expand Up @@ -79,6 +79,7 @@ private function recordCharge(array $transaction, $user)

private function recordSubscription(array $transaction, $user, array $originalValues = [])
{
$trackingData = [];
$planStatus = array_key_exists('status', $transaction) ? $transaction['status'] : null;
$planName = isset($transaction['plan']['name']) ? $transaction['plan']['name'] : null;
$planStart = array_key_exists('start', $transaction) ? $transaction['start'] : null;
Expand Down Expand Up @@ -169,9 +170,7 @@ private function recordSubscription(array $transaction, $user, array $originalVa
}
}

if ($trackingData) {
event(new MixpanelEvent($user, $trackingData, 0, $profileData));
}
event(new MixpanelEvent($user, $trackingData, 0, $profileData));
}

private function findStripeCustomerId(array $transaction)
Expand Down

0 comments on commit d425593

Please sign in to comment.