Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Latest commit

 

History

History
43 lines (22 loc) · 852 Bytes

Query_Strings.md

File metadata and controls

43 lines (22 loc) · 852 Bytes

Page Query Strings

donation amount

Specify the amount that's preselected.

Query string example: ?amount=20

Default: nothing

Note, doesn't really do any validation right now. So negative values "work" and nonsense strings "work".

preset donation amount

Specify the amount in the four donation amount buttons.

Query string example: ?presets=1, 2, 3, 4

Default: 20, 10, 5, 3

Note, must be four options. It reverts to the defaults if it has more or less than 4 options.

currency

Specify the currency.

Query string example: ?currency=usd

Default: usd

Available options: mxn, nok, aud, brl, cad, chf, czk, dkk, eur-de, eur-fr, gbp, hkd

Note, only works with lowercase values.

frequency

Specify the donation frequency.

Query string example: ?frequency=monthly

Default: single

Available options: single, monthly