Commit 10fa3160 authored by beardedwarrior's avatar beardedwarrior

store the total received

parent 8824f917
...@@ -87,6 +87,8 @@ class walletNotify extends Command ...@@ -87,6 +87,8 @@ class walletNotify extends Command
$project = Project::where('payment_id', $transaction->paymentId)->first(); $project = Project::where('payment_id', $transaction->paymentId)->first();
if ($project) { if ($project) {
// update the project total // update the project total
$project->raised_amount = $project->raised_amount + $transaction->amount;
$project->save();
} }
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment