getbouncer / cardscan-ios

A library for scanning credit and debit cards
MIT License
203 stars 67 forks source link

Add device object #253

Closed jaimejiyepark closed 3 years ago

jaimejiyepark commented 3 years ago

To match the form event payload on Android, I made a new object that contains just the device info so it can be used in cardverify. Please take a look at the device field payload under (Client Forms) https://docs.google.com/document/d/1HvO6VfeafosoWLX9VJggl9mvTLc2-sQuHNeCLTy-lL8/edit#.

{
  "locale" : "en-US",
  "ids" : {
    "vendor_id" : "4EC3B517..."
  },
  "phone_count" : 1,
  "platform" : "ios",
  "os_version" : "14.2.1",
  "carrier" : "Verizon",
  "boot_count" : null,
  "phone_type" : 1,
  "name" : "iPhone13,3",
  "network_operator" : null
}

Todo:

jaimejiyepark commented 3 years ago

we have the various info scattered between cardscan and cardverify. i wanted to unify it into 1 place and i chose to do it in cardscan since we're going to eventually migrate to the v2 payload and i