Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/composer/guzzlehttp/psr7-1.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
vamuigua authored May 10, 2024
2 parents fa6c488 + d4e9cbf commit 4eed15e
Show file tree
Hide file tree
Showing 6 changed files with 14,847 additions and 130,117 deletions.
8 changes: 4 additions & 4 deletions app/Http/Controllers/Tenant/PaymentsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ public function paymentsStore(Request $request)

$amount_paid = $this->validatedData['amount_paid'];

$paymentData = ['payment_type' => 'mpesa'];
array_merge($this->validatedData, $paymentData);

// Create a new payment with the validated data
$payment = Payment::create(array_merge(
$this->validatedData,
['payment_type' => 'mpesa'],
));
$payment = Payment::create();

$payment_id = $payment->id;

Expand Down
30 changes: 15 additions & 15 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4eed15e

Please sign in to comment.