* When you press the "Mark as paid" Button on the invoice, you can now enter a transaction id.
If the Payment gateway of the Invoice is "Custom" and it's enabled, the transaction ID will be used to add transactions that add funds in the amount of the invoice to the customer. Then, it will be marked as paid, just like with any other payment provider.
* Added processTransaction method to the Custom Payment Gateway.
* Fixed tests by removing unnecessary tests for Payment Adapters that don't have the processTransaction method.
---------
Co-authored-by: Christoph Schläpfer <chris+github@cleverly.ch>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
* Rewritten bin/prepare & +FOSSBilling_Environment
* -redundancy
* - unnecessary bits
* nothing much
* Fix inverted logic, use new function in missed location
---------
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
* Reworked Password-Reset flow
- No more Passwords sent via E-Mail
- Correct redirects.
* Fixed spelling & last redirect
* Small fixes and updated tests for pw-reset-flow
* Fixed tests for pw-reset-flow
* Fixed tests for the Password reset flow
* Fixed typos, resolved Feedback
* Renamed event before password reset
* Renamed event after password reset
* Tweak a few comments, send the reset email instantly
---------
Co-authored-by: Christoph Schläpfer <c.schlaepfer@datact.ch>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
* #1342 fix processing emails from queue
* #1342 fix code style
* #1342 temp fix email send test
* Remove the commented out code as it's not needed
---------
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
* Remove payment gateways we can't really maintain
I've moved these to their own separate repos so others can easily contribute to them if needed, however since we can't (and don't plan to) maintain these, it's best to remove them from the main repo and no longer ship them with every installation.
The only known-working one is TwoCheckout which I'll get added to the extension directory
* Fix the tests
* Add feature to hide public FOSSBilling version and Company information
* Cleaned up
* Added Test cases for Version & Company information
* Fixed Authorization Mock
* Fixed Tests so isAdminLoggedIn is false when testing Public Access
* Cleaned up
* Implemented Suggested code and fixed tests.
* Removed manual Version for API.js string and replaced with twig filter "script_tag"
* Added Twig filter for Version and replaced guest.system_version
* Added Message to Admin Settings
* Now let's do all of that, but better
- A filter is the wrong way to get the system version to the front end
- The wording in the admin panel for these settings didn't correctly describe what they did and they had poor grammar
- The version check should be returning a string, not an array & the code can be significantly cleaned up.
- Inverting the behavior of these toggles means that existing installations will continue to have the same behavior as before without us forcibly changing it. Otherwise, we need to introduce a DB patch to add the new values with them being on to match what was the old behavior.
- For new installations, we can pretty safely turn these options off to give a bit more privacy / security and allow them to be turned back on if wanted.
- New installations can keep the current behavior. We will highlight that this feature is added & if it's something the administrator wants, they can adjust the settings for themselves
* Cursed spelling *angry hand movements*
* That should have never been an array to being with
---------
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
* Fixed Passwort Reset handling so the message is the same whether the E-Mail address exists or not.
* Fixed spelling & Test
* Fixed Typo
* Improved Staff PW Reset handling and removed both Exceptions to return true
* Improved grammar & wording
---------
Co-authored-by: Christoph Schläpfer <c.schlaepfer@datact.ch>
Co-authored-by: Anuril <ta@TAPC01.localdomain>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
* Fix / improve flawed email confirmation system
* Don't check email confirmation during login
This will prevent them from being able to change it if they had a typo and is not needed now that it's checked on page-load
* Removed the unneeded test
* Minor improvements to cron
* I swear these tests are high sometimes
Seriously. Why did this check pass before?
* Update Service.php
* Update ServiceTest.php
* Prevent non numeric values being used in limits
Potential abuse for Sql injection
Only allow integers to be used
Adjust exception
* Disable upload assets via Theme pages
File upload was removed in an earlier PR
* Make sure the test run fine
* Fix the tests
* Use limit instead of per_page
* And another fix
---------
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
* Replace Box_Session and improve session handling
* Improve weights, capitalize class name correctly
* Make the tests pass, update the SQL structure
* Tweak to the fingerprint class, fix more tests
* Regenerate session IDs when logging in
* Improve readability
* Update ServiceTest.php
* Tweak weights and added Huntr badge to the readme
* Improve readability, add PHPDocs, and updated weight
* Update SECURITY.md
* Refactor System Updater
Refactor Box/Update to clean things up, merge related functionality, improve error checking, and move to FOSSBilling namespace.
Also refactor foss-update.php into core class, `UpdatePatcher`.
* Refactor file system actions to use Symfony Filesystem
Refactor file system actions to use Symfony Filesystem component, and declare all used resources at start of files rather than duplicating throughout.
* Replace composer's dev autoloader with AntLoader
This way, people don't need to specifically remember to remove dev deps before uploading to a server.
* Move to the tests bootstrap file
* Implemented Monolog
* Doesn't need to look for BB_DEBUG. It won't be logged on prod anyway.
* Doesn't need to be an array
* -Box_LogStream
* Reverted squash
* Fixed a duplicate
* Type hinting
* This got lost in a merge commit
* Kind of distracted today. Good thing squash and merge exists.
* Cleaning
* Rebased composer.json & lockfile
* Enabled the check again
---------
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
* Introduce a cspell workflow
* Update cspell.yml
* Update cspell.yml
* Why is it seemingly ignoring the config?
* Waiit a min
* Fixed a bunch of spelling mistakes
* And set it back to incremental mode
* That is actually supposed to be spelled wrong..
Because BoxBilling :)
* Capitalization
* I swear I fixed this as well
* Update cspell.json
---------
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
* Caught a typo
* New ExtensionDirectory class
* Tests
* Tests and error handling
* Stuff
* Literally the same outcome anyway. Will write this in the future.
* Removed tests for a function that does nothing
* "stable" -> "release"
* Fix misnamed exception errors
* Update class name to ExtensionManager
---------
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>