{"_id":"@cashlift_payments/sdk","_rev":"2-d9b6929569b1234f67ec99987d51e66d","name":"@cashlift_payments/sdk","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.5":{"name":"@cashlift_payments/sdk","version":"0.0.5","description":"payment sdk","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"test":"jest --config jestconfig.json","build":"tsc","prepare":"npm run build","prepublishOnly":"npm test && npm run lint","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","lint":"tslint -p tsconfig.json"},"repository":{"type":"git","url":"git+https://gitlab.com/diviven/payment.git"},"author":{"name":"Diviven org"},"license":"ISC","bugs":{"url":"https://gitlab.com/diviven/payment/issues"},"homepage":"https://gitlab.com/diviven/payment#readme","peerDependencies":{"react":"^17.0.2","react-dom":"^17.0.2","react-native":"^0.67.2"},"dependencies":{"axios":"^0.26.0","got":"^12.0.1","lodash":"^4.17.21","moment":"^2.29.1","react-native-ble-plx":"^2.0.3","react-native-permissions":"^3.2.0"},"devDependencies":{"@types/jest":"^27.4.0","@types/react":"^17.0.39","@types/react-native":"^0.66.16","install-peers":"^1.0.3","jest":"^27.5.1","metro-react-native-babel-preset":"^0.68.0","prettier":"^2.5.1","react":"^17.0.2","react-dom":"^17.0.2","react-native":"^0.67.2","ts-jest":"^27.1.3","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.5.5"},"gitHead":"cdf4b01c5540e663ae882c548dde8f1256942ae5","_id":"@cashlift_payments/sdk@0.0.5","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-0eg/miDrW5My4k5T/WHaIQSGBCppMgachnpRc4TJBlDRF8mGPfKitRjk2zQR9976k8fAgi86rxPdn7TUtnToqw==","shasum":"90b42d8a65b3f790b604c4455bfcc1025233ca95","tarball":"https://registry.npmjs.org/@cashlift_payments/sdk/-/sdk-0.0.5.tgz","fileCount":10,"unpackedSize":11337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDa2HCRA9TVsSAnZWagAAECYP/jYMv4r6eWd2tF0wVjqZ\nXehjmPT36tzvNqFXdWJOVnic2uuMivtUiQDKE+r15MIqh7/Q63cl7GvSoL5l\nu/+XJw3cLbME90o2pcVN+AuyPA1Fw5dreU/uan8cv7kjDkOWv5nXwvLLcswM\nAJqw+E4JwI1D/43MVIadbXFCV8e98d8d5MwMc1c/eL/CjTYdeu1ucjSfn73H\nOjr6w8CJDXq/k7wlopJ88UPfYMxLuL5ScykRsPfU4VpBlesYLD7aIKwqfwRT\n+zm8RANilUKhf+iYUHoQqWEAJsOBe9J/CRRqQBr3cg9/pPEEeaa97uInuuaI\ncg5iKbCupg+BFVAdis1DbaiIqHEvAIz5uIHns7oF0XmXCSIwm1fGMX7FQP5A\nvaOIp788BTfgOp/t4RGVdAtAvn4/MKm8hfRmwsCPVlwlM8O1KUthphmJh3lX\nqcna8NF30PcKNtVUWvYCWPwTOQcS64KX7eSZmjcLGATe4J97bfZF8HRCmac+\nMl5oNLw096ZP44z+qIfoGbXQdB4hy5QLsudTO6OFjMs4+ZAYf7Atuc17qp8y\nbqMah66VWQ7yvQwKtN3fvwSrYvALBCTeSbvrAYTABow+p4uJmhQsaIus+OFU\nc2Asw5MQablLOVxJtlM/j0l2K4/kDJpRpYL6afskv3WUOdRSZSj94Jc6jRdE\nyrLB\r\n=LTlB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKHmTZAwcVPy4xvP/pHAuB2xY3ESkKqef8tTkHdPZ/YAIgEk4pA0W/r/1aFFeAwElfI/WKdvJTgnBg58ns74G7woI="}]},"_npmUser":{"name":"diviven","email":"gouda@diviven.com"},"directories":{},"maintainers":[{"name":"diviven","email":"gouda@diviven.com"},{"name":"cashlift","email":"adel.ammar@cashlift.be"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.0.5_1645063559564_0.3737371775880247"},"_hasShrinkwrap":false},"0.0.6":{"name":"@cashlift_payments/sdk","version":"0.0.6","description":"payment sdk","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"test":"jest --config jestconfig.json","build":"tsc","prepare":"npm run build","prepublishOnly":"npm test && npm run lint","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","lint":"tslint -p tsconfig.json"},"repository":{"type":"git","url":"git+https://gitlab.com/diviven/payment.git"},"author":{"name":"cashlift_payments org"},"license":"ISC","bugs":{"url":"https://gitlab.com/diviven/payment/issues"},"homepage":"https://gitlab.com/diviven/payment#readme","peerDependencies":{"react":"^17.0.2","react-dom":"^17.0.2","react-native":"^0.67.2"},"dependencies":{"axios":"^0.26.0","got":"^12.0.1","lodash":"^4.17.21","moment":"^2.29.1","react-native-ble-plx":"^2.0.3","react-native-permissions":"^3.2.0"},"devDependencies":{"@types/jest":"^27.4.0","@types/react":"^17.0.39","@types/react-native":"^0.66.16","install-peers":"^1.0.3","jest":"^27.5.1","metro-react-native-babel-preset":"^0.68.0","prettier":"^2.5.1","react":"^17.0.2","react-dom":"^17.0.2","react-native":"^0.67.2","ts-jest":"^27.1.3","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.5.5"},"gitHead":"cdf4b01c5540e663ae882c548dde8f1256942ae5","_id":"@cashlift_payments/sdk@0.0.6","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-heWug9tSMr66vmN9XKsGZDPE01Z7OF0DSdGIhWCfQPGO5VNSBR/4EfqX2Q9URyar3xjtgw9CDQB6f1w7IsMrQg==","shasum":"f4ad986651c413df5276005763d8549c7b50117c","tarball":"https://registry.npmjs.org/@cashlift_payments/sdk/-/sdk-0.0.6.tgz","fileCount":10,"unpackedSize":11347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDa3FCRA9TVsSAnZWagAACPEP/3YC9Gj2foOzuzjJyfRc\naa0TaTDKkMbdDh+Mak1HrlueCGJZkaMNiG47PEXVtOf3gw9IOCvOHj4Eg4iq\nmJpNthfsqjuUysy17FjehFEL499yQ1gtymFw1gNHOUehKwARhHfm3GKL9IeF\nKz3BHi3QQH28tvn9nBML8Fbvw2/4cEXHUUBLkGOt3C1w1xcvzyNV1qxM9Vbx\nr2Wbiiu/iiNe93ooMxrUyCDMZu6mmL2NrJsHY5wIkhNCookMlqwyq7ypGzMW\nuwmgCeQ4VM5Fsp7sGxlKeW5maNyXju+Fpz87lZ7h7xPm1v8VFN/riYjKmbKE\nXCQFa7ZIx99siKBQi6h85dUhPfPY3tTmqbl9OoLI8vlYSFnf1uKzDpvpV9sE\nyr+tTWX2OtjdiOHb3TWRDTu40w1HIkPdGfVNuRA0Osf5OiXOa8tf8Ni2EpLx\nk2tgUtjgg81OBfXMz+XAsNCrbzFa6B56L0warmqWfWuOAXprFnQxxMoaAvm6\nBswfFUlruSPnlwdb8BP0BR9RUSIm2p6QMHFOh46anRFO8xAJ/aoD14nzfgAC\ncMN7XenStxSBDhwxgT5lMA1KT2I6BL8d8KZOb22nzf05WEOTXT5lo0SqqrOz\nVXWl2Z/fhdGVVYtylHfzak6q1RGxeYptgwrptBkk/pKU4GJE45AU8SaDQBFu\nTtBx\r\n=339x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCM1LDdHyfVVmon97/V+iFE0+yGyH+YGxlY4JaGS48ciwIgKBE9NJwnsRhgAxXFhgvk2dufs2LsuaWsHeGrBWfdtdU="}]},"_npmUser":{"name":"diviven","email":"gouda@diviven.com"},"directories":{},"maintainers":[{"name":"diviven","email":"gouda@diviven.com"},{"name":"cashlift","email":"adel.ammar@cashlift.be"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.0.6_1645063621233_0.20324046504459825"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-17T02:05:59.527Z","0.0.5":"2022-02-17T02:05:59.718Z","modified":"2022-04-04T22:02:14.579Z","0.0.6":"2022-02-17T02:07:01.364Z"},"maintainers":[{"name":"diviven","email":"gouda@diviven.com"},{"name":"cashlift","email":"adel.ammar@cashlift.be"}],"description":"payment sdk","homepage":"https://gitlab.com/diviven/payment#readme","repository":{"type":"git","url":"git+https://gitlab.com/diviven/payment.git"},"author":{"name":"cashlift_payments org"},"bugs":{"url":"https://gitlab.com/diviven/payment/issues"},"license":"ISC","readme":"## Support\n\n| version | react-native version | Xcode version |\n| ------- | -------------------- | ------------- |\n| 3.0.0+  | 0.63.0+              | 12+           |\n## Installing dependencies into a bare React Native project​\n```bash\n$ npm install --save react-native-ble-plx react-native-permissions\n# --- or ---\n$ yarn add react-native-ble-plx react-native-permissions\n```\n\n## Setup\n\n```bash\n$ npm install --save @diviven/payment\n# --- or ---\n$ yarn add @diviven/payment\n```\n## Configuration & Installation\n\n### Expo\n\n1. Make sure your Expo project is ejected (formerly: detached). You can read how to do it [here](https://docs.expo.io/versions/latest/expokit/eject/) and [here](https://docs.expo.io/versions/latest/expokit/expokit). (only for expo)\n1. Follow steps for iOS/Android.\n\n### iOS ([example setup](https://github.com/Cierpliwy/SensorTag))\n\n1. `npm install --save react-native-ble-plx`\n1. Enter `ios` folder and run `pod update`\n1. Add `NSBluetoothAlwaysUsageDescription` in `info.plist` file. (it is a requirement since iOS 13)\n1. If you want to support background mode:\n   - In your application target go to `Capabilities` tab and enable `Uses Bluetooth LE Accessories` in\n     `Background Modes` section.\n   - Pass `restoreStateIdentifier` and `restoreStateFunction` to `BleManager` constructor.\n\n### Android ([example setup](https://github.com/Cierpliwy/SensorTag))\n\n1. `npm install --save react-native-ble-plx`\n1. In top level `build.gradle` make sure that min SDK version is at least 18:\n\n    ```groovy\n    buildscript {\n        ext {\n            ...\n            minSdkVersion = 21\n            ...\n    ```\n1. In `build.gradle` make sure to add jitpack repository to known repositories:\n\n    ```groovy\n    allprojects {\n        repositories {\n          ...\n          maven { url 'https://www.jitpack.io' }\n        }\n    }\n    ```\n1. (Optional) In `AndroidManifest.xml`, add Bluetooth permissions and update `<uses-sdk/>`:\n\n    ```xml\n    <manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        ...\n        <uses-permission android:name=\"android.permission.BLUETOOTH\"/>\n        <uses-permission android:name=\"android.permission.BLUETOOTH_ADMIN\"/>\n        <uses-permission-sdk-23 android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>\n\n        <!-- Add this line if your application always requires BLE. More info can be found on:\n            https://developer.android.com/guide/topics/connectivity/bluetooth-le.html#permissions\n          -->\n        <uses-feature android:name=\"android.hardware.bluetooth_le\" android:required=\"true\"/>\n\n        ...\n    ```\n\n## Troubleshooting\n\n### Problems with Proguard\n\nAdd this to your `app/proguard-rules.pro`\n\n```\n-dontwarn com.polidea.reactnativeble.**\n```\n\n\n## 🆘 Manual linking\n\nBecause this package targets React Native 0.63.0+, you probably won't need to link it manually. Otherwise if it's not the case, follow these additional instructions. You also need to manual link the module on Windows when using React Native Windows prior to 0.63:\n\n<details>\n  <summary><b>👀 See manual linking instructions</b></summary>\n\n### iOS\n\nAdd this line to your `ios/Podfile` file, then run `pod install`.\n\n```bash\ntarget 'YourAwesomeProject' do\n  # …\n  pod 'RNPermissions', :path => '../node_modules/react-native-permissions'\nend\n```\n\n### Android\n\n1. Add the following lines to `android/settings.gradle`:\n\n```gradle\ninclude ':react-native-permissions'\nproject(':react-native-permissions').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-permissions/android')\n```\n\n2. Add the implementation line to the dependencies in `android/app/build.gradle`:\n\n```gradle\ndependencies {\n  // ...\n  implementation project(':react-native-permissions')\n}\n```\n\n## How TO use\n\n\n```jsx\nimport {CheckPermissions, StartScanDevices} from '@diviven/payment'\n...\nCheckPermissions().then(()=>{\n    StartScanDevices()\n      .then(devices => {\n        console.log(devices);\n      })\n      .catch(err => {\n        console.log(err);\n      });\n  });\n```\n","readmeFilename":"README.md"}