|
|
@@ -78,7 +78,7 @@ class BillingController extends Controller |
|
|
|
public function chargeEvent(Request $request) { |
|
|
|
$event = \Stripe\Event::constructFrom($request->all()); |
|
|
|
$charge = $event->data->object; |
|
|
|
$transaction = Transaction::where('intent_id', $charge->payment_intent); |
|
|
|
$transaction = Transaction::where('intent_id', $charge->payment_intent)->first(); |
|
|
|
$user = $transaction->user; |
|
|
|
|
|
|
|
if ($event->type == 'charge.succeeded') { |
|
|
|