mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Support for payment_intent.succeeded
event
This commit is contained in:
parent
d25359c444
commit
1a4543bc0c
@ -423,7 +423,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') {
|
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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user