| @@ -482,8 +482,25 @@ | ||
| 482 | 482 | 'active' => [ |
| 483 | 483 | 'type' => 'bool', |
| 484 | 484 | 'default' => false, |
| 485 | 485 | ], |
| 486 | + 'default_amounts' => [ | |
| 487 | + 'type' => 'string', | |
| 488 | + // Last-resort fallback only, used when the account's live API bounds | |
| 489 | + // (payment_methods.permissions.scalapay.amounts) aren't available yet. | |
| 490 | + // Kept in sync with Scalapay::DEFAULT_MIN_AMOUNT/DEFAULT_MAX_AMOUNT, | |
| 491 | + // which cover the case where this key itself is missing from a stored | |
| 492 | + // options array. This schema is intentionally dependency-free, so the | |
| 493 | + // values are repeated here as a literal rather than referenced. | |
| 494 | + 'default' => '{"min":500, "max":400000}', | |
| 495 | + ], | |
| 496 | + 'custom_amounts' => [ | |
| 497 | + 'type' => 'string', | |
| 498 | + // Empty means "not customized yet" - the merchant's actual choice, if | |
| 499 | + // any. Must NOT default to a concrete value, or that value would be | |
| 500 | + // read as an explicit override of the account's live API bounds. | |
| 501 | + 'default' => '{}', | |
| 502 | + ], | |
| 486 | 503 | ], |
| 487 | 504 | ], |
| 488 | 505 | ], |
| 489 | 506 | |