Skip to content

Commit f0ef5e9

Browse files
committed
Get further details about the charge for diagnostics / analytics
1 parent fbb9c8e commit f0ef5e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Action/CaptureAction.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ public function execute($request) {
6161
}
6262
if ($paymentIntent->latest_charge ?? false) {
6363
$model['transactionReference'] = $paymentIntent->latest_charge;
64+
$charge = $stripe->charges->retrieve($paymentIntent->latest_charge);
65+
$model['stripe_charge_info'] = $charge;
6466
}
6567
}
6668
}

0 commit comments

Comments
 (0)