Files
FOSSBilling/tests-legacy/modules
Adam Daley a48c0ec998 Validate gateway_id in IPN and transaction creation (#3159)
* Validate `gateway_id` in IPN and transaction creation

Added input validation for `gateway_id` in `ipn.php` to ensure it is a positive integer, returning a 400 error for invalid values. In ServiceTransaction, now checks if the provided `gateway_id` exists in the database and throws an exception if not, logging a warning for invalid gateway IDs.

* Add logger existence check in `ServiceTransaction`

Ensures that the logger is set before attempting to log a warning when an invalid `gateway_id` is encountered. Also removes an unnecessary `gateway_id` entry from test data in `ServiceTransactionTest`.
2026-01-14 17:49:37 +00:00
..