Advertisement
khalequzzaman17

boraxip bKash API (JS func)

Jul 5th, 2022
1,191
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var _0x56a59d = _0x42d0;
  2.  
  3. function _0x3f3a() {
  4.     var _0x485577 = ['div', 'There was an error!', 'business_phone', 'getTime', 'stringify', 'customer_email', 'src', 'color:#fff;cursor:pointer;position:fixed; bottom: calc(50% - 250px); left: calc(50% - 50px);', 'body', 'paymentdetailsjson', '&dd=', 'cssText', 'iframe', 'boraxip_bkash_personal_retail_payment_iframe_div_close', 'license', 'random', '4408866hykwDP', 'position:fixed;top:0;left:0; width:100%;height:100%;opacity:1;z-index:100;background:rgb(0,0,0,.5);', 'remove_boraxip_bkash_personal_retail_payment_loader();', 'licensekey', 'onload', '838830IsjjTy', 'onclick', 'innerHTML', 'Payment data not set properly', 'https://bkash-api.boraxip.com', '662437KRScMQ', '&token=', 'business_logo', 'then', 'total_ammount', '6vGTOhp', 'appendChild', 'product_name', 'token', '28716710uKNAxd', 'payment_reference', 'hostname', 'error', 'business_info', 'boraxip_bkash_personal_retail_payment_loader', 'boraxip_bkash_personal_retail_payment_iframe_div', 'purchase_info', 'createElement', 'log', 'setAttribute', 'payment_data', '3734402hrpbEj', 'catch', 'slice', 'parse', 'Cancel Payment', 'remove_boraxip_bkash_personal_retail_payment_curd();', '4cvzfOG', '9AofsFT', 'position:fixed; top: calc(50% - 220.4px); left: calc(50% - 160.4px); width:324px; height:444px;border: 0px solid #95989a; display:none;', '/paymentlink/default-payment?payment_info_data=', 'product_quantity', 'boraxip_bkash_personal_retail_payment_button', 'bkash_retail_id', 'style', '/api/v1/bksah-personal-retail-account-payment-boraxip-api?token=', 'make_payment_boraxip_bkash_personal_retail();', 'business_email', '4246835Xdjtqf', 'block', '6277200etfrUE', 'toString', 'getElementById', 'business_name', 'remove', 'product_price'];
  5.     _0x3f3a = function () {
  6.         return _0x485577;
  7.     };
  8.     return _0x3f3a();
  9. }(function (_0x41c9c6, _0x1db244) {
  10.     var _0xc89ba8 = _0x42d0,
  11.         _0x9b98d = _0x41c9c6();
  12.     while (!![]) {
  13.         try {
  14.             var _0x2c630e = parseInt(_0xc89ba8(0x192)) / 0x1 + parseInt(_0xc89ba8(0x18d)) / 0x2 * (parseInt(_0xc89ba8(0x1ae)) / 0x3) + -parseInt(_0xc89ba8(0x1ad)) / 0x4 * (-parseInt(_0xc89ba8(0x1b8)) / 0x5) + -parseInt(_0xc89ba8(0x197)) / 0x6 * (parseInt(_0xc89ba8(0x1a7)) / 0x7) + parseInt(_0xc89ba8(0x1ba)) / 0x8 + parseInt(_0xc89ba8(0x1d0)) / 0x9 + -parseInt(_0xc89ba8(0x19b)) / 0xa;
  15.             if (_0x2c630e === _0x1db244) break;
  16.             else _0x9b98d['push'](_0x9b98d['shift']());
  17.         } catch (_0x2c4d79) {
  18.             _0x9b98d['push'](_0x9b98d['shift']());
  19.         }
  20.     }
  21. }(_0x3f3a, 0x9c1b8));
  22. const api_host_domain = _0x56a59d(0x191);
  23. var paymentdetailsjson = '',
  24.     bkash_api_payment_info = '',
  25.     userdomain = window['location'][_0x56a59d(0x19d)],
  26.     token = btoa(Math['random']()[_0x56a59d(0x1bb)](0x24)[_0x56a59d(0x1a9)](0x2, 0xc) + new Date()[_0x56a59d(0x1c3)]() + userdomain + Math[_0x56a59d(0x1cf)]()[_0x56a59d(0x1bb)](0x24)[_0x56a59d(0x1a9)](0x2, 0x5));
  27.  
  28. function center_boraxip_bkash_personal_retail_payment_loader() {
  29.     var _0x273fa6 = _0x56a59d,
  30.         _0x5412c7 = document[_0x273fa6(0x1a3)](_0x273fa6(0x1c0));
  31.     _0x5412c7[_0x273fa6(0x1a5)]('id', _0x273fa6(0x1a0)), _0x5412c7[_0x273fa6(0x1b4)][_0x273fa6(0x1cb)] = 'position:fixed;top:0;left:0; width:100%;height:100%;opacity:1;z-index:100;background:rgb(0,0,0,.1);padding: calc(50% - 0px) 0% 0% calc(40% - 0px);background-size: 300px 300px;', document['body']['appendChild'](_0x5412c7), document[_0x273fa6(0x1bc)](_0x273fa6(0x1a0))[_0x273fa6(0x18f)] = '<div class=\"loadingio-spinner-eclipse-tq7fa5asxs\" style=\"position: fixed; left: calc(50% - 100px); top: calc(50% - 100px);\"><div class=\"ldio-1i0xygwxbpe\"><div></div></div></div><style type=\"text/css\">@keyframes ldio-1i0xygwxbpe{0%{transform: rotate(0deg)}50%{transform: rotate(180deg)}100%{transform: rotate(360deg)}}.ldio-1i0xygwxbpe div{position: absolute; animation: ldio-1i0xygwxbpe 1s linear infinite; width: 160px; height: 160px; top: 20px; left: 20px; border-radius: 50%; box-shadow: 0 4px 0 0 #e30b6e; transform-origin: 80px 82px;}.loadingio-spinner-eclipse-tq7fa5asxs{width: 200px; height: 200px; display: inline-block; overflow: hidden; background: none;}.ldio-1i0xygwxbpe{width: 100%; height: 100%; position: relative; transform: translateZ(0) scale(1); backface-visibility: hidden; transform-origin: 0 0; }.ldio-1i0xygwxbpe div{box-sizing: content-box;}</style>';
  32. }
  33.  
  34. function remove_boraxip_bkash_personal_retail_payment_loader() {
  35.     var _0x3bd891 = _0x56a59d,
  36.         _0x20a81 = document[_0x3bd891(0x1bc)](_0x3bd891(0x1a0));
  37.     _0x20a81[_0x3bd891(0x1be)](), document[_0x3bd891(0x1bc)]('boraxip_bkash_personal_retail_payment_iframe')[_0x3bd891(0x1b4)]['display'] = _0x3bd891(0x1b9), get_payment_info_boraxip_bkash_personal_retail();
  38. }
  39.  
  40. function _0x42d0(_0x57ed6d, _0x501ff0) {
  41.     var _0x3f3a63 = _0x3f3a();
  42.     return _0x42d0 = function (_0x42d028, _0x9c6fc3) {
  43.         _0x42d028 = _0x42d028 - 0x188;
  44.         var _0x4f9e93 = _0x3f3a63[_0x42d028];
  45.         return _0x4f9e93;
  46.     }, _0x42d0(_0x57ed6d, _0x501ff0);
  47. }
  48. window[_0x56a59d(0x18c)] = function () {
  49.     var _0x10f360 = _0x56a59d;
  50.     if (document[_0x10f360(0x1bc)](_0x10f360(0x1b2))) {
  51.         var _0x24294f = document[_0x10f360(0x1bc)](_0x10f360(0x1b2));
  52.         _0x24294f[_0x10f360(0x1a5)](_0x10f360(0x18e), _0x10f360(0x1b6));
  53.     }
  54. };
  55.  
  56. function make_payment_boraxip_bkash_personal_retail(_0xdf1902) {
  57.     var _0x1b1e7f = _0x56a59d,
  58.         _0x21f926 = {
  59.             'license': {
  60.                 'bkash_retail_id': _0xdf1902['license'][_0x1b1e7f(0x1b3)] ? _0xdf1902[_0x1b1e7f(0x1ce)][_0x1b1e7f(0x1b3)] : '',
  61.                 'licensekey': _0xdf1902[_0x1b1e7f(0x1ce)]['licensekey'] ? _0xdf1902[_0x1b1e7f(0x1ce)]['licensekey'] : ''
  62.             },
  63.             'business_info': {
  64.                 'business_name': _0xdf1902[_0x1b1e7f(0x19f)][_0x1b1e7f(0x1bd)] ? _0xdf1902[_0x1b1e7f(0x19f)][_0x1b1e7f(0x1bd)] : '',
  65.                 'business_logo': _0xdf1902[_0x1b1e7f(0x19f)]['business_logo'] ? _0xdf1902[_0x1b1e7f(0x19f)][_0x1b1e7f(0x194)] : '',
  66.                 'business_email': _0xdf1902[_0x1b1e7f(0x19f)]['business_email'] ? _0xdf1902[_0x1b1e7f(0x19f)][_0x1b1e7f(0x1b7)] : '',
  67.                 'business_phone': _0xdf1902[_0x1b1e7f(0x19f)][_0x1b1e7f(0x1c2)] ? _0xdf1902[_0x1b1e7f(0x19f)][_0x1b1e7f(0x1c2)] : ''
  68.             },
  69.             'purchase_info': {
  70.                 'customer_name': _0xdf1902[_0x1b1e7f(0x1a2)]['customer_name'] ? _0xdf1902['purchase_info']['customer_name'] : '',
  71.                 'customer_email': _0xdf1902['purchase_info'][_0x1b1e7f(0x1c5)] ? _0xdf1902[_0x1b1e7f(0x1a2)][_0x1b1e7f(0x1c5)] : '',
  72.                 'product_name': _0xdf1902[_0x1b1e7f(0x1a2)][_0x1b1e7f(0x199)] ? _0xdf1902['purchase_info']['product_name'] : '',
  73.                 'product_price': _0xdf1902[_0x1b1e7f(0x1a2)][_0x1b1e7f(0x1bf)] ? _0xdf1902['purchase_info']['product_price'] : '',
  74.                 'product_quantity': _0xdf1902[_0x1b1e7f(0x1a2)][_0x1b1e7f(0x1b1)] ? _0xdf1902[_0x1b1e7f(0x1a2)]['product_quantity'] : '',
  75.                 'total_ammount': _0xdf1902[_0x1b1e7f(0x1a2)][_0x1b1e7f(0x196)] ? _0xdf1902['purchase_info'][_0x1b1e7f(0x196)] : '',
  76.                 'payment_reference': _0xdf1902[_0x1b1e7f(0x1a2)][_0x1b1e7f(0x19c)] ? _0xdf1902['purchase_info'][_0x1b1e7f(0x19c)] : ''
  77.             }
  78.         };
  79.     if (_0x21f926[_0x1b1e7f(0x1ce)][_0x1b1e7f(0x1b3)] && _0x21f926['license'][_0x1b1e7f(0x18b)] && _0x21f926[_0x1b1e7f(0x19f)]['business_name'] && _0x21f926[_0x1b1e7f(0x1a2)][_0x1b1e7f(0x196)] && _0x21f926[_0x1b1e7f(0x1a2)][_0x1b1e7f(0x19c)]) {
  80.         center_boraxip_bkash_personal_retail_payment_loader();
  81.         var _0x2d7ea5 = document[_0x1b1e7f(0x1a3)](_0x1b1e7f(0x1c0));
  82.         _0x2d7ea5['scrolling'] = 'no', _0x2d7ea5[_0x1b1e7f(0x1a5)]('id', 'boraxip_bkash_personal_retail_payment_iframe_div'), _0x2d7ea5['style'][_0x1b1e7f(0x1cb)] = _0x1b1e7f(0x188) + api_host_domain + _0x1b1e7f(0x189);
  83.         var _0x238f92 = document[_0x1b1e7f(0x1a3)](_0x1b1e7f(0x1c0));
  84.         _0x238f92['scrolling'] = 'no', _0x238f92[_0x1b1e7f(0x1a5)](_0x1b1e7f(0x18e), _0x1b1e7f(0x1ac)), _0x238f92[_0x1b1e7f(0x1a5)]('id', _0x1b1e7f(0x1cd)), _0x238f92[_0x1b1e7f(0x1b4)][_0x1b1e7f(0x1cb)] = _0x1b1e7f(0x1c7), _0x238f92[_0x1b1e7f(0x18f)] = _0x1b1e7f(0x1ab);
  85.         var _0x5eedb5 = JSON[_0x1b1e7f(0x1c4)](_0x21f926),
  86.             _0x32c721 = document['createElement'](_0x1b1e7f(0x1cc));
  87.         _0x32c721[_0x1b1e7f(0x1c6)] = api_host_domain + '/' + _0x21f926['license'][_0x1b1e7f(0x1b3)] + _0x1b1e7f(0x1b0) + btoa(unescape(encodeURIComponent(_0x5eedb5))) + _0x1b1e7f(0x1ca) + btoa(unescape(encodeURIComponent(userdomain))) + _0x1b1e7f(0x193) + token, _0x32c721['scrolling'] = 'no', _0x32c721[_0x1b1e7f(0x1a5)](_0x1b1e7f(0x18c), _0x1b1e7f(0x18a)), _0x32c721['setAttribute']('id', 'boraxip_bkash_personal_retail_payment_iframe'), _0x32c721['style'][_0x1b1e7f(0x1cb)] = _0x1b1e7f(0x1af), document[_0x1b1e7f(0x1c8)][_0x1b1e7f(0x198)](_0x2d7ea5), _0x2d7ea5[_0x1b1e7f(0x198)](_0x32c721), _0x2d7ea5[_0x1b1e7f(0x198)](_0x238f92), get_payment_info_boraxip_bkash_personal_retail();
  88.     } else console[_0x1b1e7f(0x1a4)](_0x21f926[_0x1b1e7f(0x1ce)][_0x1b1e7f(0x1b3)]), alert(_0x1b1e7f(0x190));
  89. }
  90.  
  91. function remove_boraxip_bkash_personal_retail_payment_curd() {
  92.     var _0x48f946 = _0x56a59d,
  93.         _0x2bd58d = document[_0x48f946(0x1bc)](_0x48f946(0x1a1));
  94.     _0x2bd58d && _0x2bd58d[_0x48f946(0x1be)]();
  95. }
  96.  
  97. function setdata(_0x4b3c99) {
  98.     paymentdetailsjson = _0x4b3c99;
  99. }
  100.  
  101. function get_payment_info_boraxip_bkash_personal_retail() {
  102.     var _0x32242c = _0x56a59d;
  103.     if (paymentdetailsjson != '') {
  104.         var _0x225603 = JSON[_0x32242c(0x1aa)](paymentdetailsjson[_0x32242c(0x1a6)]);
  105.         bkash_api_payment_info = _0x225603[_0x32242c(0x1c9)], bkash_api_payment_info[_0x32242c(0x19a)] = paymentdetailsjson[_0x32242c(0x19a)], get_bkash_api_payment_info(bkash_api_payment_info), paymentdetailsjson = '', remove_boraxip_bkash_personal_retail_payment_curd();
  106.     } else fetch(api_host_domain + _0x32242c(0x1b5) + token)[_0x32242c(0x195)](_0xb442b0 => {
  107.         if (_0xb442b0['ok']) return _0xb442b0['json']();
  108.         throw _0xb442b0;
  109.     })['then'](_0x1a7c80 => {
  110.         setdata(_0x1a7c80);
  111.     })[_0x32242c(0x1a8)](_0x1baf7d => {
  112.         var _0x331b9c = _0x32242c;
  113.         console[_0x331b9c(0x19e)](_0x331b9c(0x1c1), _0x1baf7d);
  114.     }), document[_0x32242c(0x1bc)](_0x32242c(0x1a1)) && setTimeout(get_payment_info_boraxip_bkash_personal_retail, 0x1388);
  115. }
Advertisement
RAW Paste Data Copied
Advertisement