185

Registration confirmation email received from clover community website. Well played Clover 👍

Comments
  • 5
    @jAsE your public display name is often equivalent to your login. Like on DevRant!
  • 1
    @teganburns Clover is a cloud based Point of sale(POS) platform. It is a developer forum for the same integration.
  • 1
    How are you liking clover? tried developing for it for a period of concept. Seemed simple enough.
  • 0
    @demortes Pretty cool stuff TBH and yeah simpler to integrate.
  • 1
    @demortes
    Clover signup data is very dirty, however.
    Be warned!
  • 0
    @Root what do you mean?
  • 1
    @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?
  • 0
    @Root tag your it
  • 1
    @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.
  • 1
    @Root what in holy hell....
  • 0
    I love when i see a website who uses jokes 🤣, makes me want to contribute more!!!
Add Comment