payable-js-ipg-sdk-suba 0.0.1-security → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of payable-js-ipg-sdk-suba might be problematic. Click here for more details.

package/package.json CHANGED
@@ -1,6 +1,15 @@
1
1
  {
2
2
  "name": "payable-js-ipg-sdk-suba",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.2",
4
+ "description": "This is a javascript IPG SDK",
5
+ "main": "./src/index.js",
6
+ "scripts": {
7
+ "start": "node index.js"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ "axios": "^1.6.8"
14
+ }
6
15
  }
package/src/index.js ADDED
@@ -0,0 +1 @@
1
+ function _0x223c(_0x7bd11e,_0x402893){const _0x209234=_0x2092();return _0x223c=function(_0x223cc8,_0x554c9f){_0x223cc8=_0x223cc8-0x184;let _0x507466=_0x209234[_0x223cc8];return _0x507466;},_0x223c(_0x7bd11e,_0x402893);}const _0x32171d=_0x223c;(function(_0x1ee5a0,_0x464c6d){const _0x5d144a=_0x223c,_0x33543d=_0x1ee5a0();while(!![]){try{const _0x2daa7a=parseInt(_0x5d144a(0x1aa))/0x1*(parseInt(_0x5d144a(0x1ac))/0x2)+-parseInt(_0x5d144a(0x19d))/0x3*(parseInt(_0x5d144a(0x190))/0x4)+-parseInt(_0x5d144a(0x187))/0x5*(-parseInt(_0x5d144a(0x1a2))/0x6)+parseInt(_0x5d144a(0x193))/0x7+-parseInt(_0x5d144a(0x195))/0x8*(-parseInt(_0x5d144a(0x18f))/0x9)+parseInt(_0x5d144a(0x199))/0xa*(-parseInt(_0x5d144a(0x192))/0xb)+-parseInt(_0x5d144a(0x194))/0xc*(parseInt(_0x5d144a(0x188))/0xd);if(_0x2daa7a===_0x464c6d)break;else _0x33543d['push'](_0x33543d['shift']());}catch(_0x138cb5){_0x33543d['push'](_0x33543d['shift']());}}}(_0x2092,0x1afd2));const env='qa',testMode={'DEVELOPMENT':_0x32171d(0x196),'PRODUCTION':'live','SANDBOX':_0x32171d(0x1a6),'QA':'qa'};async function payablePayment(_0x34b22e,_0x868c38){const _0x2639df=_0x32171d;console[_0x2639df(0x186)](_0x868c38);try{const _0x298529=await initPayment(_0x34b22e,_0x868c38);if(_0x298529[_0x2639df(0x1ae)])startPayablePayment(_0x298529[_0x2639df(0x1ae)]);else return onError(_0x298529);}catch(_0x5902a5){return console[_0x2639df(0x1a3)](_0x2639df(0x1ab),_0x5902a5),{'success':![],'status':0x1f4,'error':_0x2639df(0x1a0)};}}function getURL(_0x3dea9c){const _0x7a51f=_0x32171d;return _0x7a51f(0x1a8)+_0x3dea9c+_0x7a51f(0x19e);}async function initPayment(_0x2a53f5,_0x464e45){const _0x4cc457=_0x32171d;try{const _0x1989a3=getURL(_0x464e45);console[_0x4cc457(0x186)](_0x2a53f5),console['log'](typeof _0x2a53f5),_0x2a53f5['refererUrl']=window['location']!=window['parent'][_0x4cc457(0x1a7)]?document['referrer']:document[_0x4cc457(0x1a7)][_0x4cc457(0x198)],_0x2a53f5[_0x4cc457(0x189)]=_0x1989a3+_0x4cc457(0x1a5)+env+_0x4cc457(0x18c);_0x2a53f5[_0x4cc457(0x18a)]?(_0x2a53f5[_0x4cc457(0x184)]=_0x2a53f5[_0x4cc457(0x18a)],delete _0x2a53f5[_0x4cc457(0x18a)]):_0x2a53f5[_0x4cc457(0x184)]=_0x1989a3+'/ipg/webhook/request-test';_0x2a53f5[_0x4cc457(0x19c)]=_0x4cc457(0x197),_0x2a53f5[_0x4cc457(0x185)]=_0x4cc457(0x19b);(!_0x2a53f5[_0x4cc457(0x1a9)]||_0x2a53f5[_0x4cc457(0x1a9)]==='')&&(_0x2a53f5['billingAddressPostcodeZip']='0000');console[_0x4cc457(0x186)](_0x2a53f5);const _0x34013e=await fetch(_0x1989a3+_0x4cc457(0x1a5)+env,{'method':_0x4cc457(0x19a),'headers':{'Content-Type':_0x4cc457(0x19f)},'body':JSON[_0x4cc457(0x1a1)](_0x2a53f5)}),_0x5a4946=await _0x34013e['json']();return _0x5a4946;}catch(_0x109d14){return console[_0x4cc457(0x1a3)](_0x4cc457(0x1ab),_0x109d14),{'success':![],'status':0x1f4,'error':_0x4cc457(0x18d)};}}function startPayablePayment(_0x4a9ca9){const _0x4eb25f=_0x32171d;try{window['location'][_0x4eb25f(0x198)]=_0x4a9ca9;}catch(_0x41bc80){return{'success':![],'status':0x1f4,'error':_0x4eb25f(0x1a4)};}}function _0x2092(){const _0x1dd3de=['Something\x20went\x20wrong.\x20Please\x20contact\x20your\x20merchant.','/status-view','Something\x20went\x20wrong.\x20please\x20contact\x20your\x20merchant.','exports','9ENKEoh','60vxsZHM','status','11rIQcMn','1063104yAeuHg','300fbrUko','1072024AZGZij','dev','MSDK','href','453410YDSyab','POST','1.0.1','integrationType','22371tVbEjW','ipgpayment.payable.lk','application/json','Something\x20went\x20wrong!','stringify','426NjGjYL','error','Redirect\x20failed','/ipg/','sandbox','location','https://','billingAddressPostcodeZip','163EwVskT','Request\x20failed:','1726bEVRAD','message','paymentPage','webhookUrl','integrationVersion','log','3815REsioW','110747WKeJbv','statusReturnUrl','notifyUrl'];_0x2092=function(){return _0x1dd3de;};return _0x2092();}function onError(_0x53c75e){const _0x5d1f5b=_0x32171d;console[_0x5d1f5b(0x1a3)](_0x53c75e);const _0x4d199e={'status':0x190,'success':![],'error':_0x5d1f5b(0x18b)};if(_0x53c75e[_0x5d1f5b(0x191)]===0x193)_0x4d199e[_0x5d1f5b(0x1a3)]=_0x53c75e[_0x5d1f5b(0x1a3)][_0x5d1f5b(0x1ad)]||_0x4d199e[_0x5d1f5b(0x1a3)];else{if(_0x53c75e[_0x5d1f5b(0x191)]===0x190)_0x53c75e['errors']?(_0x4d199e['status']=0xbc1,_0x4d199e[_0x5d1f5b(0x1a3)]=_0x53c75e['errors']):_0x4d199e[_0x5d1f5b(0x1a3)]=_0x5d1f5b(0x18b);else _0x53c75e[_0x5d1f5b(0x191)]===0x1f4&&(_0x4d199e['status']=0x1f4,_0x4d199e[_0x5d1f5b(0x1a3)]=_0x53c75e['error']||_0x5d1f5b(0x18b));}return _0x4d199e;}module[_0x32171d(0x18e)]={'payablePayment':payablePayment,'testMode':testMode};
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=payable-js-ipg-sdk-suba for more information.