Change accepted webhook type

This commit is contained in:
Benjamin Beganović 2021-09-13 17:10:59 +02:00
parent c4a4d4d25c
commit 15eeb6d101

View File

@ -422,7 +422,7 @@ class StripePaymentDriver extends BaseDriver
// Allow app to catch up with webhook request. // Allow app to catch up with webhook request.
sleep(2); sleep(2);
if ($request->type === 'charge.succeeded' || $request->type === 'source.chargeable') { if ($request->type === 'charge.succeeded' || $request->type === 'payment_intent.succeeded') {
foreach ($request->data as $transaction) { foreach ($request->data as $transaction) {
$payment = Payment::query() $payment = Payment::query()
->where('transaction_reference', $transaction['id']) ->where('transaction_reference', $transaction['id'])