npm

@tap-payments/browser-info
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

browser-information

Sample SDK to retrieve browser information using javascript

Usage

import { BrowserInfo } from "@tap-payments/browser-info"

new BrowserInfo({
  app: {
    name: "My App",
    language: "en"
  },
  credentials: {
    mdn: "123456789",
    pk: "123456789"
  },
  encrypt: (key, value) => {
    // encryptString(value) or return value
  },
  location: {
    ip: "",
    latitude: "",
    longitude: ""
  }
}).get()

Properties

Property Type Description
app object Application information
app.name string Application name
app.language string Application language
credentials object Credentials
credentials.mdn string Merchant origin
credentials.pk string Public key
encrypt func Encryption function or you can return the value as it's
location object Location information
location.ip string IP address
location.lat string Latitude
location.long string Longitude

Readme

Keywords

none

Package Sidebar

Install

npm i @tap-payments/browser-info

Weekly Downloads

386

Version

1.0.2

License

ISC

Unpacked Size

18 kB

Total Files

11

Last publish

Collaborators

  • sherifashraftap
  • mostafaabobakr.tap
  • i.mousa
  • mahmoudallam
  • aya_tap
  • mud_fahmi
  • ahmedkaram-tap
  • haitham-tap
  • muhammadazhar007
  • elsharkawy
  • waqast
  • hala.q
  • reham_alsabbagh
  • kalpanatap
  • sadbarkhattak