Commit 680d9cf
* Added checkout customization parameters
Feature/daniele/checkout custom parameters (#819)
# Conflicts:
# start.php
* Flat checkout properties
* feat(checkout): allow customizing checkout query params via filter
Introduce a namespaced filter to let developers add/modify query params sent to Freemius Checkout.
• Add fs_apply_filter( $fs->get_unique_affix(), 'checkout_query_params', ... )
* Add allowlist for checkout query parameters in FS_Checkout_Manager
Introduced the private $_allowed_custom_params property to define all supported
custom query parameters for the checkout. After applying `fs_apply_filter()`,
the function now filters `$filtered_params` using `array_intersect_key()` to
remove any unsupported keys before merging. This prevents external filters from
injecting unexpected parameters into the checkout query.
* Changed filter name to checkout/parameters, code clean and small fixes
---------
Co-authored-by: Daniele Alessandra <[email protected]>1 parent 0be8867 commit 680d9cf
2 files changed
+39
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
16 | 45 | | |
17 | 46 | | |
18 | 47 | | |
| |||
153 | 182 | | |
154 | 183 | | |
155 | 184 | | |
156 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
157 | 191 | | |
158 | 192 | | |
159 | 193 | | |
| |||
239 | 273 | | |
240 | 274 | | |
241 | 275 | | |
242 | | - | |
| 276 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| 449 | + | |
449 | 450 | | |
450 | 451 | | |
451 | 452 | | |
| |||
0 commit comments