eraeco / pay

Checkard is a peer-to-peer check payment system for ERA PAY.
MIT License
4 stars 0 forks source link

autofill any fields that appear in the querystring #5

Closed jazzyjackson closed 1 month ago

jazzyjackson commented 1 month ago

This adds an else branch so that if no key/code was detected for loading a saved check, the query string will be parsed for possible details instead.

In order to hide the placeholder text it was also necessary to call attr("blank", false) on each field that is programmatically filled.

amark commented 1 month ago

1) address & fraction is coming from the payer, so drop those.

2) Let's make Date (if it does not exist) auto-fill to current day. (if possible with no dependency, should be possible in 1 line for a "3-26-2024" format tho bit ugly/long cause Date API? Nice URL param extraction 1 liner!!! gonna steal that in future)

Could pull now but it'll be nice to have the commits threaded together.

cloudflare-pages[bot] commented 1 month ago

Deploying pay with  Cloudflare Pages  Cloudflare Pages

Latest commit: 88b478f
Status: ✅  Deploy successful!
Preview URL: https://15fc2337.pay-cwc.pages.dev
Branch Preview URL: https://urlsearchparams.pay-cwc.pages.dev

View logs

jazzyjackson commented 1 month ago

set date to use en-US locale for mm/dd/yyyy goodness and dropped fraction and address

amark commented 1 month ago

pulled thanks! Send me a PAYLINK ;) ;) ;) ;) to pay you