Donate form: custom-amount label, visible minimum, fee-cover info icon; hard 1.00 floor; purge abandoned checkouts; drop refund filters; soften personal-account wording
Test and Release / test (push) Successful in 3m9s
Test and Release / release (push) Successful in 8s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
shadowdaoandClaude Sonnet 5.5 committed 2026-11-15 10:41:29 -08:00
1 parent a259c0b0a1
commit e22675f54b
13 files changed
+177 -15

No files matched your search

+11
View File
@@ -8,6 +8,17 @@ namespace StreamGoals\Core;
*/
final class Settings {
/**
* Absolute minimum donation in minor units (1.00 of the currency). PayPal's fixed per-transaction fee
* makes smaller donations a net loss for the streamer, so the configured minimum can never go below this.
*/
public const HARD_MIN_MINOR = 100;
/** The minimum that is actually enforced: the configured value, but never below the hard floor. */
public static function effectiveMin( int $configured ): int {
return max( self::HARD_MIN_MINOR, $configured );
}
public static function defaults(): array {
return array(
'paypal_mode' => 'sandbox', // sandbox | live