These are chat archives for CORE-POS/IS4C

28th
Jun 2016
Finn
@thefinn93
Jun 28 2016 01:21
i've seen that there's a place to store the amount a transaction must be before asking for a signature... where is that stored and, more importantly, how do i retrieve it
Finn
@thefinn93
Jun 28 2016 01:46
actually, a general overview of how signature stuff is supposed to work (where should I store the signature files? what format should they be in? I guess I should proly add them to the DB... is there a nice PHP OO interface for that so i can go new Signature() or something?
fun thing: Pax doesn't send the signature in any format i've ever seen
this is what I get when i parse it with my library
0,65535^23,16^23,13^22,16^22,19^23,22^23,26^23,29^23,32^23,35^24,39^24,42^25,45^28,46^32,44^35,43^38,40^41,39^44,36^0,65535^78,2^75,3^72,6^69,9^68,13^65,16^64,19^63,22^62,26^62,29^62,32^63,35^64,39^67,42^70,44^73,45^76,44^80,42^82,39^83,35^84,32^86,29^87,26^88,22^89,19^89,16^88,13^88,9^87,6^85,3^0,65535^110,0^110,4^109,7^109,10^108,13^108,17^108,20^108,23^108,26^108,30^108,33^110,36^112,39^115,41^118,42^121,43^124,43^128,42^131,41^134,40^137,39^140,39^144,37^~
ew
Andy Theuninck
@gohanman
Jun 28 2016 11:11
Signatures go in the CapturedSignature table. Format has traditionally been bitmap but I don't think there's any reason it has to be. I'd guess those are some form of (x,y) coordinates
Finn
@thefinn93
Jun 28 2016 15:31
ya, they are pairs of XY coordinates that you're supposed to draw a line through until you hit a 0,65535 which means new line
Finn
@thefinn93
Jun 28 2016 16:21
yeah
AccelerateNetworks/IS4C@e1ec659
lol
(bottom file)
already did similar
oh i guess i didn't use COREPOS\pos\lib\Bitmap
Andy Theuninck
@gohanman
Jun 28 2016 16:22
Doesn't really matter
Finn
@thefinn93
Jun 28 2016 16:22
mk
Andy Theuninck
@gohanman
Jun 28 2016 16:24
If you want to print the image, some receipt printers are finicky and while choke on anything that isn't a bitmap with 1-bit color depth. But IMO there's really no need to print the image at the time of the transaction
Finn
@thefinn93
Jun 28 2016 16:24
yeah, i don't think that's a goal yet
or hopefully ever
Andy Theuninck
@gohanman
Jun 28 2016 16:25
I've never found any reason to
Finn
@thefinn93
Jun 28 2016 16:25
i'd assume if it happened it would be because the person who pays for the system wants it
not because it was in any way useful
annnyway, lemme get started with the CapturedSignature stuff
oh right, @gohanman how do i determine when to ask for a signature?
IIRC theres a setting somewhere... i just couldn't find it
Finn
@thefinn93
Jun 28 2016 16:48
hang on am I reading this right, the full binary contents of the signature file is stored in the database?
Andy Theuninck
@gohanman
Jun 28 2016 16:48
yeah
Finn
@thefinn93
Jun 28 2016 16:48
okay
i guess i could store the points...
Andy Theuninck
@gohanman
Jun 28 2016 16:52
You could, although you'd have to recreated the rendering logic on the back end. Any particular reason not to just put the image contents into CapturedSignature.filecontents?
Finn
@thefinn93
Jun 28 2016 16:53
everything i've ever read on the topic says not to store images in a database
oh actually... Dan wants vectors anyway, maybe i'll convert to SVG or some BS and slap that in a DB
Andy Theuninck
@gohanman
Jun 28 2016 16:58
As a rule of thumb, I tend to agree, but in this particular case it avoids creating an additional communication channel to transmit files from the lane to the server. Everything can just flow through the database connection. It's also an atypical situation in that we're storing images that most likely no one will ever look at again. So sending them to the browser with maximum efficiency isn't as a high a priority as it would be in most situations.
Finn
@thefinn93
Jun 28 2016 16:58
ah okay
i guess that makes sense
i'll play with it, need to write the logic for when to ask for a signature first
Andy Theuninck
@gohanman
Jun 28 2016 17:05
It's a little convoluted. Paycards adds an optional setting called CCSigLimit that's simply a merchant setting to say we don't care about signatures on transactions < $25 or < $50 or whatever. Pre-EMV it's that merchant setting plus the transaction type (Credit=>Yes, Debit=>No) but post-EMV you probably have to look at the PAX auth response to determine whether it went through as chip+pin or chip+signature
Finn
@thefinn93
Jun 28 2016 17:05
alright
Finn
@thefinn93
Jun 28 2016 20:51
Alright, so, signature shit working pretty okay. I haven't sufficiently handled the condition where the customer cancels the signature request, but other than that im pretty happy
got EBT Food working, need to do EBT cash now
as I understand it that's valid for most things but not all?
is there some sort of total for EBT cash? like fsEligible for EBT food
Andy Theuninck
@gohanman
Jun 28 2016 20:53
EBT cash is unrestricted; it's just food that has the eligibility component
Finn
@thefinn93
Jun 28 2016 20:53
ok
I'm hearing from Dan @ Accelerate that cigarettes and alcohol are restricted from EBT Cash
i take it you don't have any mechanism to deal with this?
Andy Theuninck
@gohanman
Jun 28 2016 20:54
AFAIK it's never come up. Maybe varies by state?
Finn
@thefinn93
Jun 28 2016 20:55
maybe? idk
"No one implements it correctly" -- dan
lol
if, hypothetically, i wanted to track this
eg have some sort of No EBT Cash field
is it easy?
can i just extend the right class and add a field?
ooo if i wanted to be really shitty about it, i could just check if it was age restricted
Andy Theuninck
@gohanman
Jun 28 2016 20:58
Age restricted would probably work. I'd lean towards adding additional values for products.foodstamp & localtemptrans.foodstampable beyond just zero and one for other eligibility scenarios but I'd have to track down where all it's referenced
Finn
@thefinn93
Jun 28 2016 20:58
okay
i mean i can think of things that aren't cigarettes and alcohol that are age restricted...
fireworks, spray paint in some cities (Portland at least)
Finn
@thefinn93
Jun 28 2016 21:00
ah
here in Wasington, you can buy guns with foodstamps
lol
Andy Theuninck
@gohanman
Jun 28 2016 21:01
But Dan's right, not tobacco or cigarettes
Finn
@thefinn93
Jun 28 2016 21:02
mkay
Finn
@thefinn93
Jun 28 2016 21:38
is EBT tax exempt or anything?
EBT cash
i think someone said that
Andy Theuninck
@gohanman
Jun 28 2016 21:39
Not that I'm aware of. Food is
Finn
@thefinn93
Jun 28 2016 21:39
ok
i'm using fsEligible for EBT Food, basically doing the same as a debit card (for now) for EBT cash
Andy Theuninck
@gohanman
Jun 28 2016 21:40
That's what the other integrated card implementations do
Finn
@thefinn93
Jun 28 2016 21:40
ok