Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@teganburns Clover is a cloud based Point of sale(POS) platform. It is a developer forum for the same integration.
-
How are you liking clover? tried developing for it for a period of concept. Seemed simple enough.
-
Root797427y@demortes One of the projects I'm maintaining accepts Clover signups, and that module has a good thirty lines (?) of sanitizing.
I'll provide details tomorrow if I remember.
Tag me again as a reminder? -
Root797427y@demortes
Here's an example pulled from this project's codebase:
The Clover devices send up data in any of: "name", "account", or "email" fields, containing... A merchant name, an email address, and a dev mode indicator (not necessarily in that order). This can be comma or pipe-delimited, neither, or pseudo json(?), depending on the field. The email field, for example, might be: "example@email.comDEVtypecom.clover.account"
While the "account" field might instead be: "Account {name=Merchant Name | example@email.com (DEV), type=com.clover.account}"
Less annoyingly, the phone numbers may be pre-formatted, such as "(888) 555-1212" (though that's quite easy to clean)
------
Edit: I just noticed a bug in this sanitizing code: it won't work with any email address that doesn't end in .com 😅 Friggin' API Guy.
Related Rants
Registration confirmation email received from clover community website. Well played Clover 👍
joke/meme
registration
password
email
welcome