fix unit tests as well as missing code
API CI/CD / Validate (composer + pint) (push) Successful in 2m7s
API CI/CD / Test (PHPUnit) (push) Failing after 2m23s
API CI/CD / Build frontend assets (push) Successful in 2m18s
API CI/CD / Security audit (push) Successful in 31s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped

This commit is contained in:
root
2026-06-25 14:26:32 -04:00
parent fdfcd1f0e2
commit 940afe9319
115 changed files with 4554 additions and 290 deletions
@@ -3,6 +3,7 @@
namespace App\Services\Payments;
use App\Models\PaymentTransaction;
use Illuminate\Support\Facades\Schema;
class PaymentTransactionService
{
@@ -22,7 +23,9 @@ class PaymentTransactionService
'semester' => $payload['semester'] ?? null,
];
return PaymentTransaction::query()->create($data);
$columns = array_flip(Schema::getColumnListing('payment_transactions'));
return PaymentTransaction::query()->create(array_intersect_key($data, $columns));
}
public function getByPayment(int $paymentId): array