From e3175199d5fd925f4363c51d6f8f854491851791 Mon Sep 17 00:00:00 2001 From: Clement Wong Date: Tue, 26 Jun 2018 12:38:39 +0800 Subject: [PATCH] Release 3.20.2 --- molpay.js | 2 +- package.json | 2 +- plugin.xml | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/molpay.js b/molpay.js index 97bc366..e0b3763 100644 --- a/molpay.js +++ b/molpay.js @@ -1 +1 @@ -var _0xe19a=['loadstart','toast','showWithOptions','bottom','plugins','Image\x20saved\x20fail!','permissions','requestPermission','WRITE_EXTERNAL_STORAGE','hasPermission','indexOf','replace','close','atob','stringify','base64ImageUrlData','filename','PNG','imageSaver','saveBase64Image','innerHTML','cordova/exec','module_id','wrapper_version','getElementById','padding','border','createElement','iframe','updateSdkData','load','mainUiFrame','allowScriptAccess','always','setAttribute','src','appendChild','molpayTransactionRequestFrame','closemolpay','testMerchantCredentials','body','exports','open','prototype','remove','parentElement','length','removeChild','molpay-mobile-xdk-cordova','mptransactionresults://','mprunscriptonpopup://','mpcloseallwindows://','MOLPay/result.php','\x22msgType\x22:\x22B4\x22','\x22msgType\x22:\x22C6\x22','style','visibility','position','absolute','width','0px','100%','height','=0x0;_0x2e6abb--)this[_0x2e6abb]&&this[_0x2e6abb][_0xae19('0x3')]&&this[_0x2e6abb]['parentElement'][_0xae19('0x5')](this[_0x2e6abb]);};var isInternalDebugging=!0x1,moduleId=_0xae19('0x6'),wrapperVersion='1',molpaySdkUrl='molpay-mobile-xdk-www/index.html',mpopenmolpaywindow='mpopenmolpaywindow://',mptransactionresults=_0xae19('0x7'),mprunscriptonpopup=_0xae19('0x8'),mpcloseallwindows=_0xae19('0x9'),mppinstructioncapture='mppinstructioncapture://',molpayresulturl=_0xae19('0xa'),molpaynbepayurl='MOLPay/nbepay.php',b4results=_0xae19('0xb'),c6results=_0xae19('0xc'),molpayPaymentDetails,transactionResultCallback,molpayDiv,mainUiFrame,bankUiWindow,molpayTransactionRequestFrame,isClosingMolpay=!0x1,hideFrame=function(_0x1c6507){_0x1c6507[_0xae19('0xd')][_0xae19('0xe')]='hidden',_0x1c6507[_0xae19('0xd')][_0xae19('0xf')]=_0xae19('0x10'),_0x1c6507[_0xae19('0xd')][_0xae19('0x11')]=_0xae19('0x12'),_0x1c6507['style']['height']='0px';},showFrame=function(_0x4a2e39){_0x4a2e39[_0xae19('0xd')][_0xae19('0xe')]='visible',_0x4a2e39[_0xae19('0xd')][_0xae19('0xf')]=_0xae19('0x10'),_0x4a2e39[_0xae19('0xd')][_0xae19('0x11')]=_0xae19('0x13'),_0x4a2e39['style'][_0xae19('0x14')]=_0xae19('0x13');},postMolpayResultHandler=function(_0xc15a17){var _0x594809=_0xc15a17;if(_0x594809){var _0x387d2e=new RegExp(_0xae19('0x15')),_0x5edb46=_0x387d2e[_0xae19('0x16')](_0x594809);_0x5edb46&&(_0x594809=_0x594809[_0xae19('0x17')](0x0,_0x5edb46['index']));var _0x2f0236=function(_0xba97d6){var _0x75d2e1,_0x12a9d8,_0x5187a5=_0xba97d6,_0x16874d=new RegExp('<','g'),_0x475ba4=new RegExp('<'),_0x43432f=new RegExp('>'),_0x288f39=_0x5187a5[_0xae19('0x18')](_0x16874d);if(_0x5187a5&&_0x288f39&&_0x475ba4[_0xae19('0x16')](_0x5187a5)&&_0x43432f['exec'](_0x5187a5))for(var _0x4764e0=_0x288f39[_0xae19('0x4')]-0x1;_0x4764e0>=0x0;_0x4764e0--)_0x75d2e1=_0x475ba4[_0xae19('0x16')](_0x5187a5)['index'],_0x12a9d8=_0x43432f[_0xae19('0x16')](_0x5187a5)['index'],_0x5187a5=_0x5187a5[_0xae19('0x19')](0x0,_0x75d2e1)+''+_0x5187a5[_0xae19('0x19')](_0x12a9d8+0x1);return _0x5187a5;};_0x594809=_0x2f0236(_0x594809);var _0x45497e,_0x10d4c6;if(_0x45497e=new RegExp(b4results),_0x45497e['test'](_0x594809)&&(_0x10d4c6=JSON[_0xae19('0x1a')](_0x594809))){var _0x3a40e7=_0x10d4c6[_0xae19('0x1b')];_0x3a40e7&&mainUiFrame['contentWindow'][_0xae19('0x1c')](_0x3a40e7);}}},isBankUiWindowClosedByCloseWindowEvent=!0x1,createBankUiWindow=function(_0x5a7d8e){var _0x191606=_0xae19('0x1d')+_0x5a7d8e;bankUiWindow=window[_0xae19('0x0')](_0x191606,'_blank',_0xae19('0x1e'));var _0x2c8971=function(_0x15836d){isBankUiWindowClosedByCloseWindowEvent||mainUiFrame[_0xae19('0x1f')][_0xae19('0x20')](),bankUiWindow['removeEventListener'](_0xae19('0x21'),_0x2c8971);};bankUiWindow[_0xae19('0x22')](_0xae19('0x21'),_0x2c8971);var _0x1cebed=function(_0x4682e7){var _0x189938;_0x189938=new RegExp(molpaynbepayurl),_0x4682e7&&_0x189938[_0xae19('0x23')](_0x4682e7[_0xae19('0x24')])&&(bankUiWindow['executeScript']({'code':_0xae19('0x25')},function(_0x4b5f19){}),bankUiWindow['executeScript']({'code':_0xae19('0x26')},function(_0x3f0e8a){}));};bankUiWindow[_0xae19('0x22')](_0xae19('0x27'),_0x1cebed);var _0x4b0cb9=function(_0x381f3a){var _0x3db5e1;if(mainUiFrame[_0xae19('0x1f')][_0xae19('0x28')]({'requestPath':_0x381f3a[_0xae19('0x24')]}),_0x3db5e1=new RegExp(molpaynbepayurl),_0x381f3a&&_0x3db5e1[_0xae19('0x23')](_0x381f3a[_0xae19('0x24')]))var _0x46cee8=0xa,_0x9fe1e8=0x0,_0x23859a=setInterval(function(){_0x135235();},0x3e8),_0x135235=function(){_0x9fe1e8++,_0x9fe1e8>_0x46cee8?clearInterval(_0x23859a):bankUiWindow[_0xae19('0x29')]({'code':_0xae19('0x2a')},function(_0x32db01){var _0x547f56=_0x32db01[0x0],_0x5163e5=new RegExp(b4results);_0x5163e5[_0xae19('0x23')](_0x547f56)&&(postMolpayResultHandler(_0x547f56),bankUiWindow[_0xae19('0x2b')]('loadstart',_0x4b0cb9),bankUiWindow['close'](),clearInterval(_0x23859a));});};};bankUiWindow['addEventListener'](_0xae19('0x2c'),_0x4b0cb9);},inAppCallback=function(_0x12c4cb){function _0x31a95c(){window['plugins'][_0xae19('0x2d')][_0xae19('0x2e')]({'message':'Image\x20saved\x20success!','duration':0x3e8,'position':_0xae19('0x2f')});}function _0x221614(){window[_0xae19('0x30')][_0xae19('0x2d')][_0xae19('0x2e')]({'message':_0xae19('0x31'),'duration':0x3e8,'position':_0xae19('0x2f')});}function _0x5a4b67(){var _0x12c4cb=cordova[_0xae19('0x30')][_0xae19('0x32')];_0x221614();var _0x4f293d=function(){_0x221614();};_0x12c4cb[_0xae19('0x33')](_0x12c4cb[_0xae19('0x34')],function(_0x156587){_0x156587[_0xae19('0x35')]?_0x5a5385():_0x4f293d();},_0x4f293d);}var _0x2bc8f8,_0x186de3;if(_0x12c4cb&&_0x12c4cb[_0xae19('0x36')](mpopenmolpaywindow)>-0x1)_0x186de3=new RegExp(mpopenmolpaywindow,'g'),_0x2bc8f8=_0x12c4cb[_0xae19('0x37')](_0x186de3,''),_0x2bc8f8&&_0x2bc8f8[_0xae19('0x4')]>0x0&&createBankUiWindow(_0x2bc8f8);else if(_0x12c4cb&&_0x12c4cb['indexOf'](mpcloseallwindows)>-0x1)isBankUiWindowClosedByCloseWindowEvent=!0x0,bankUiWindow[_0xae19('0x38')]();else if(_0x12c4cb&&_0x12c4cb[_0xae19('0x36')](mptransactionresults)>-0x1){if(_0x186de3=new RegExp(mptransactionresults,'g'),_0x2bc8f8=_0x12c4cb[_0xae19('0x37')](_0x186de3,''),_0x2bc8f8&&_0x2bc8f8['length']>0x0){var _0x289cc5=window[_0xae19('0x39')](_0x2bc8f8),_0x3c693b=JSON[_0xae19('0x3a')](JSON[_0xae19('0x1a')](_0x289cc5));transactionResultCallback(_0x3c693b),isClosingMolpay&&(molpayDiv['innerHTML']='',isClosingMolpay=!0x1),molpayTransactionRequestFrame&&molpayTransactionRequestFrame[_0xae19('0x2')]();}}else if(_0x12c4cb&&_0x12c4cb[_0xae19('0x36')](mppinstructioncapture)>-0x1){_0x186de3=new RegExp(mppinstructioncapture,'g'),_0x2bc8f8=_0x12c4cb[_0xae19('0x37')](_0x186de3,'');var _0x43ffad=JSON[_0xae19('0x1a')](atob(_0x2bc8f8)),_0x2276bc={'data':_0x43ffad[_0xae19('0x3b')],'prefix':_0x43ffad[_0xae19('0x3c')],'format':_0xae19('0x3d'),'quality':0x64,'mediaScanner':!0x0};window[_0xae19('0x3e')]['saveBase64Image'](_0x2276bc,function(_0x4c8c87){_0x31a95c();},_0x5a4b67);var _0x5a5385=function(){window[_0xae19('0x3e')][_0xae19('0x3f')](_0x2276bc,function(_0x40f5cb){_0x31a95c();},function(_0x1cad85){_0x221614();});};}if(_0x12c4cb&&_0x12c4cb[_0xae19('0x36')](mprunscriptonpopup)>-0x1&&(_0x186de3=new RegExp(mprunscriptonpopup,'g'),_0x2bc8f8=_0x12c4cb[_0xae19('0x37')](_0x186de3,''),_0x2bc8f8&&_0x2bc8f8['length']>0x0)){var _0x54190e=window['atob'](_0x2bc8f8);bankUiWindow[_0xae19('0x29')]({'code':_0x54190e},function(_0x2e87db){});}},molpayCredentialsRequestFrame,testMerchantCredentialsCallback,onTestMerchantCredentialsDone=function(_0x29d5f1,_0x26096a){testMerchantCredentialsCallback(_0x29d5f1,_0x26096a),isClosingMolpay&&(molpayDiv[_0xae19('0x40')]='',isClosingMolpay=!0x1),molpayCredentialsRequestFrame&&molpayCredentialsRequestFrame[_0xae19('0x2')]();},molpayChannelsRequestFrame,testMerchantChannelsCallback,onTestMerchantChannelsDone=function(_0x59f514,_0x45fe38){testMerchantChannelsCallback&&testMerchantChannelsCallback(_0x59f514,_0x45fe38),isClosingMolpay&&(molpayDiv[_0xae19('0x40')]='',isClosingMolpay=!0x1),molpayChannelsRequestFrame&&molpayChannelsRequestFrame[_0xae19('0x2')]();},exec=require(_0xae19('0x41'));MOLPay[_0xae19('0x1')]['startMolpay']=function(_0x5c6344,_0x26704b){isClosingMolpay=!0x1,isBankUiWindowClosedByCloseWindowEvent=!0x1;try{molpayPaymentDetails=JSON[_0xae19('0x1a')](_0x5c6344);}catch(_0x48df21){molpayPaymentDetails=_0x5c6344;}molpayPaymentDetails[_0xae19('0x42')]=moduleId,molpayPaymentDetails[_0xae19('0x43')]=wrapperVersion,transactionResultCallback=_0x26704b,molpayDiv=document[_0xae19('0x44')]('molpay'),molpayDiv[_0xae19('0xd')]['width']=_0xae19('0x13'),molpayDiv[_0xae19('0xd')][_0xae19('0x45')]=_0xae19('0x12'),molpayDiv[_0xae19('0xd')][_0xae19('0x46')]=_0xae19('0x12'),mainUiFrame=document[_0xae19('0x47')](_0xae19('0x48'));var _0x34ab52=function(_0x536533){mainUiFrame[_0xae19('0x1f')][_0xae19('0x49')](JSON[_0xae19('0x3a')](molpayPaymentDetails),inAppCallback),mainUiFrame[_0xae19('0x2b')](_0xae19('0x4a'),_0x34ab52);};mainUiFrame['style'][_0xae19('0x46')]=_0xae19('0x12'),mainUiFrame[_0xae19('0xd')][_0xae19('0x45')]='0px',mainUiFrame['style'][_0xae19('0x11')]=_0xae19('0x13'),mainUiFrame[_0xae19('0xd')][_0xae19('0x14')]=_0xae19('0x13'),mainUiFrame['id']=_0xae19('0x4b'),mainUiFrame[_0xae19('0x4c')]=_0xae19('0x4d'),mainUiFrame[_0xae19('0x4e')](_0xae19('0x4f'),molpaySdkUrl),molpayDiv[_0xae19('0x50')](mainUiFrame),mainUiFrame[_0xae19('0x22')](_0xae19('0x4a'),_0x34ab52);},MOLPay['prototype']['transactionRequest']=function(_0x55e0b2,_0x1bdc63){try{molpayPaymentDetails=JSON['parse'](_0x55e0b2);}catch(_0x52340e){molpayPaymentDetails=_0x55e0b2;}molpayPaymentDetails[_0xae19('0x42')]=moduleId,molpayPaymentDetails['wrapper_version']=wrapperVersion,transactionResultCallback=_0x1bdc63,molpayTransactionRequestFrame=document[_0xae19('0x47')](_0xae19('0x48'));var _0x2c13b8=function(_0x454229){molpayTransactionRequestFrame[_0xae19('0x1f')][_0xae19('0x49')](molpayPaymentDetails,inAppCallback),molpayTransactionRequestFrame['removeEventListener'](_0xae19('0x4a'),_0x2c13b8);};molpayTransactionRequestFrame['id']=_0xae19('0x51'),molpayTransactionRequestFrame[_0xae19('0x4c')]=_0xae19('0x4d'),molpayTransactionRequestFrame[_0xae19('0x4e')](_0xae19('0x4f'),molpaySdkUrl),hideFrame(molpayTransactionRequestFrame),document['body'][_0xae19('0x50')](molpayTransactionRequestFrame),molpayTransactionRequestFrame[_0xae19('0x22')](_0xae19('0x4a'),_0x2c13b8);},MOLPay[_0xae19('0x1')]['closeMolpay']=function(){mainUiFrame[_0xae19('0x1f')][_0xae19('0x52')]();},MOLPay[_0xae19('0x1')][_0xae19('0x53')]=function(_0x3ae7be,_0x48cd6d){_0x48cd6d&&(testMerchantCredentialsCallback=_0x48cd6d),molpayCredentialsRequestFrame=document[_0xae19('0x47')](_0xae19('0x48'));var _0xd75ac2=function(_0x4b8684){molpayCredentialsRequestFrame['contentWindow']['testMerchantCredentials'](_0x3ae7be,onTestMerchantCredentialsDone),molpayCredentialsRequestFrame['removeEventListener'](_0xae19('0x4a'),_0xd75ac2);};molpayCredentialsRequestFrame[_0xae19('0x4c')]='always',molpayCredentialsRequestFrame[_0xae19('0x4e')]('src',molpaySdkUrl),hideFrame(molpayCredentialsRequestFrame),document[_0xae19('0x54')]['appendChild'](molpayCredentialsRequestFrame),molpayCredentialsRequestFrame[_0xae19('0x22')](_0xae19('0x4a'),_0xd75ac2);},MOLPay[_0xae19('0x1')]['testMerchantChannels']=function(_0x1c732a,_0x7df3ec){_0x7df3ec&&(testMerchantChannelsCallback=_0x7df3ec),molpayChannelsRequestFrame=document[_0xae19('0x47')](_0xae19('0x48'));var _0x1a20d0=function(_0x306460){molpayChannelsRequestFrame['contentWindow']['testMerchantChannels'](_0x1c732a,onTestMerchantChannelsDone),molpayChannelsRequestFrame[_0xae19('0x2b')](_0xae19('0x4a'),_0x1a20d0);};molpayChannelsRequestFrame['allowScriptAccess']=_0xae19('0x4d'),molpayChannelsRequestFrame['setAttribute']('src',molpaySdkUrl),hideFrame(molpayChannelsRequestFrame),document[_0xae19('0x54')][_0xae19('0x50')](molpayChannelsRequestFrame),molpayChannelsRequestFrame[_0xae19('0x22')]('load',_0x1a20d0);};var molpay=new MOLPay();module[_0xae19('0x55')]=molpay; \ No newline at end of file +var _0x750f=['showWithOptions','Image\x20saved\x20success!','bottom','Image\x20saved\x20fail!','hasPermission','indexOf','replace','atob','stringify','parse','innerHTML','MOLPayPrivacyScreen','base64ImageUrlData','PNG','imageSaver','saveBase64Image','startMolpay','module_id','enable','getElementById','padding','border','createElement','iframe','updateSdkData','load','mainUiFrame','allowScriptAccess','setAttribute','src','appendChild','addEventListener','transactionRequest','wrapper_version','molpayTransactionRequestFrame','always','body','closemolpay','testMerchantCredentials','exports','open','InAppBrowser','prototype','parentElement','remove','molpay-mobile-xdk-cordova','mpopenmolpaywindow://','mptransactionresults://','mpcloseallwindows://','mppinstructioncapture://','MOLPay/nbepay.php','\x22msgType\x22:\x22B4\x22','visibility','style','position','0px','height','visible','width','100%','=0x0;_0x5ed4b5--)this[_0x5ed4b5]&&this[_0x5ed4b5][_0xf750('0x3')]&&this[_0x5ed4b5]['parentElement']['removeChild'](this[_0x5ed4b5]);};var isInternalDebugging=!0x1,moduleId=_0xf750('0x5'),wrapperVersion='2',molpaySdkUrl='molpay-mobile-xdk-www/index.html',mpopenmolpaywindow=_0xf750('0x6'),mptransactionresults=_0xf750('0x7'),mprunscriptonpopup='mprunscriptonpopup://',mpcloseallwindows=_0xf750('0x8'),mppinstructioncapture=_0xf750('0x9'),molpayresulturl='MOLPay/result.php',molpaynbepayurl=_0xf750('0xa'),b4results=_0xf750('0xb'),c6results='\x22msgType\x22:\x22C6\x22',molpayPaymentDetails,transactionResultCallback,molpayDiv,mainUiFrame,bankUiWindow,molpayTransactionRequestFrame,isClosingMolpay=!0x1,hideFrame=function(_0x3cd09a){_0x3cd09a['style'][_0xf750('0xc')]='hidden',_0x3cd09a[_0xf750('0xd')][_0xf750('0xe')]='absolute',_0x3cd09a[_0xf750('0xd')]['width']=_0xf750('0xf'),_0x3cd09a[_0xf750('0xd')][_0xf750('0x10')]=_0xf750('0xf');},showFrame=function(_0x4f2e8e){_0x4f2e8e[_0xf750('0xd')][_0xf750('0xc')]=_0xf750('0x11'),_0x4f2e8e[_0xf750('0xd')][_0xf750('0xe')]='absolute',_0x4f2e8e[_0xf750('0xd')][_0xf750('0x12')]=_0xf750('0x13'),_0x4f2e8e[_0xf750('0xd')]['height']=_0xf750('0x13');},postMolpayResultHandler=function(_0x536d9e){var _0x2bab9c=_0x536d9e;if(_0x2bab9c){var _0x367d81=new RegExp(_0xf750('0x14')),_0x5bc499=_0x367d81['exec'](_0x2bab9c);_0x5bc499&&(_0x2bab9c=_0x2bab9c[_0xf750('0x15')](0x0,_0x5bc499['index']));var _0x4c6b93=function(_0x3a7e8b){var _0x47849a,_0x4fc6b6,_0x90cf49=_0x3a7e8b,_0x4d8e63=new RegExp('<','g'),_0x4a0e17=new RegExp('<'),_0x505189=new RegExp('>'),_0xfb8cda=_0x90cf49['match'](_0x4d8e63);if(_0x90cf49&&_0xfb8cda&&_0x4a0e17[_0xf750('0x16')](_0x90cf49)&&_0x505189[_0xf750('0x16')](_0x90cf49))for(var _0x3fb6c2=_0xfb8cda[_0xf750('0x17')]-0x1;_0x3fb6c2>=0x0;_0x3fb6c2--)_0x47849a=_0x4a0e17[_0xf750('0x16')](_0x90cf49)[_0xf750('0x18')],_0x4fc6b6=_0x505189[_0xf750('0x16')](_0x90cf49)[_0xf750('0x18')],_0x90cf49=_0x90cf49['substring'](0x0,_0x47849a)+''+_0x90cf49['substring'](_0x4fc6b6+0x1);return _0x90cf49;};_0x2bab9c=_0x4c6b93(_0x2bab9c);var _0x407c83,_0x5f10cf;if(_0x407c83=new RegExp(b4results),_0x407c83[_0xf750('0x19')](_0x2bab9c)&&(_0x5f10cf=JSON['parse'](_0x2bab9c))){var _0x35ac34=_0x5f10cf[_0xf750('0x1a')];_0x35ac34&&mainUiFrame[_0xf750('0x1b')]['transactionRequestWithTransactionId'](_0x35ac34);}}},isBankUiWindowClosedByCloseWindowEvent=!0x1,createBankUiWindow=function(_0x2fea18){var _0x882fe7=_0xf750('0x1c')+_0x2fea18;bankUiWindow=window[_0xf750('0x0')](_0x882fe7,'_blank',_0xf750('0x1d'));var _0x6b6f87=function(_0x2ba683){isBankUiWindowClosedByCloseWindowEvent||mainUiFrame['contentWindow']['transactionRequest'](),bankUiWindow[_0xf750('0x1e')](_0xf750('0x1f'),_0x6b6f87);};bankUiWindow['addEventListener'](_0xf750('0x1f'),_0x6b6f87);var _0x267c81=function(_0x186920){var _0x4e9008;_0x4e9008=new RegExp(molpaynbepayurl),_0x186920&&_0x4e9008[_0xf750('0x19')](_0x186920['url'])&&(bankUiWindow[_0xf750('0x20')]({'code':_0xf750('0x21')},function(_0x3f647e){}),bankUiWindow[_0xf750('0x20')]({'code':_0xf750('0x22')},function(_0x1808ac){}));};bankUiWindow['addEventListener']('loadstop',_0x267c81);var _0xbe0b97=function(_0xe294ab){var _0xb08eb1;if(mainUiFrame['contentWindow']['nativeWebRequestUrlUpdates']({'requestPath':_0xe294ab[_0xf750('0x23')]}),_0xb08eb1=new RegExp(molpaynbepayurl),_0xe294ab&&_0xb08eb1[_0xf750('0x19')](_0xe294ab[_0xf750('0x23')]))var _0x2848e3=0xa,_0x1fad03=0x0,_0x135ba7=setInterval(function(){_0x334778();},0x3e8),_0x334778=function(){_0x1fad03++,_0x1fad03>_0x2848e3?clearInterval(_0x135ba7):bankUiWindow[_0xf750('0x20')]({'code':_0xf750('0x24')},function(_0x291e1e){var _0x3acde5=_0x291e1e[0x0],_0x4d6acc=new RegExp(b4results);_0x4d6acc[_0xf750('0x19')](_0x3acde5)&&(postMolpayResultHandler(_0x3acde5),bankUiWindow[_0xf750('0x1e')](_0xf750('0x25'),_0xbe0b97),bankUiWindow[_0xf750('0x26')](),clearInterval(_0x135ba7));});};};bankUiWindow['addEventListener'](_0xf750('0x25'),_0xbe0b97);},inAppCallback=function(_0x3c9d8f){function _0x477afd(){window['plugins'][_0xf750('0x27')][_0xf750('0x28')]({'message':_0xf750('0x29'),'duration':0x3e8,'position':_0xf750('0x2a')});}function _0xfde157(){window['plugins'][_0xf750('0x27')]['showWithOptions']({'message':_0xf750('0x2b'),'duration':0x3e8,'position':_0xf750('0x2a')});}function _0x439c16(){var _0x3c9d8f=cordova['plugins']['permissions'];_0xfde157();var _0x5bd64d=function(){_0xfde157();};_0x3c9d8f['requestPermission'](_0x3c9d8f['WRITE_EXTERNAL_STORAGE'],function(_0x2cf74c){_0x2cf74c[_0xf750('0x2c')]?_0x18d290():_0x5bd64d();},_0x5bd64d);}var _0x13d113,_0x25e76f;if(_0x3c9d8f&&_0x3c9d8f[_0xf750('0x2d')](mpopenmolpaywindow)>-0x1)_0x25e76f=new RegExp(mpopenmolpaywindow,'g'),_0x13d113=_0x3c9d8f[_0xf750('0x2e')](_0x25e76f,''),_0x13d113&&_0x13d113[_0xf750('0x17')]>0x0&&createBankUiWindow(_0x13d113);else if(_0x3c9d8f&&_0x3c9d8f[_0xf750('0x2d')](mpcloseallwindows)>-0x1)isBankUiWindowClosedByCloseWindowEvent=!0x0,bankUiWindow['close']();else if(_0x3c9d8f&&_0x3c9d8f[_0xf750('0x2d')](mptransactionresults)>-0x1){if(_0x25e76f=new RegExp(mptransactionresults,'g'),_0x13d113=_0x3c9d8f[_0xf750('0x2e')](_0x25e76f,''),_0x13d113&&_0x13d113[_0xf750('0x17')]>0x0){var _0x8d95f0=window[_0xf750('0x2f')](_0x13d113),_0xcbc0d7=JSON[_0xf750('0x30')](JSON[_0xf750('0x31')](_0x8d95f0));transactionResultCallback(_0xcbc0d7),isClosingMolpay&&(molpayDiv[_0xf750('0x32')]='',isClosingMolpay=!0x1),molpayTransactionRequestFrame&&molpayTransactionRequestFrame['remove'](),window[_0xf750('0x33')]&&window['MOLPayPrivacyScreen']['disable']();}}else if(_0x3c9d8f&&_0x3c9d8f['indexOf'](mppinstructioncapture)>-0x1){_0x25e76f=new RegExp(mppinstructioncapture,'g'),_0x13d113=_0x3c9d8f[_0xf750('0x2e')](_0x25e76f,'');var _0x42d118=JSON[_0xf750('0x31')](atob(_0x13d113)),_0x22d84d={'data':_0x42d118[_0xf750('0x34')],'prefix':_0x42d118['filename'],'format':_0xf750('0x35'),'quality':0x64,'mediaScanner':!0x0};window[_0xf750('0x36')][_0xf750('0x37')](_0x22d84d,function(_0x2912c9){_0x477afd();},_0x439c16);var _0x18d290=function(){window[_0xf750('0x36')][_0xf750('0x37')](_0x22d84d,function(_0x5c7c1e){_0x477afd();},function(_0xcbc27d){_0xfde157();});};}if(_0x3c9d8f&&_0x3c9d8f[_0xf750('0x2d')](mprunscriptonpopup)>-0x1&&(_0x25e76f=new RegExp(mprunscriptonpopup,'g'),_0x13d113=_0x3c9d8f['replace'](_0x25e76f,''),_0x13d113&&_0x13d113[_0xf750('0x17')]>0x0)){var _0x1eb9a4=window['atob'](_0x13d113);bankUiWindow[_0xf750('0x20')]({'code':_0x1eb9a4},function(_0x49ca97){});}},molpayCredentialsRequestFrame,testMerchantCredentialsCallback,onTestMerchantCredentialsDone=function(_0x228ece,_0x563e0f){testMerchantCredentialsCallback(_0x228ece,_0x563e0f),isClosingMolpay&&(molpayDiv[_0xf750('0x32')]='',isClosingMolpay=!0x1),molpayCredentialsRequestFrame&&molpayCredentialsRequestFrame[_0xf750('0x4')]();},molpayChannelsRequestFrame,testMerchantChannelsCallback,onTestMerchantChannelsDone=function(_0x5dcdf5,_0x50dc0b){testMerchantChannelsCallback&&testMerchantChannelsCallback(_0x5dcdf5,_0x50dc0b),isClosingMolpay&&(molpayDiv['innerHTML']='',isClosingMolpay=!0x1),molpayChannelsRequestFrame&&molpayChannelsRequestFrame[_0xf750('0x4')]();},exec=require('cordova/exec');MOLPay['prototype'][_0xf750('0x38')]=function(_0x35978a,_0x54b877){isClosingMolpay=!0x1,isBankUiWindowClosedByCloseWindowEvent=!0x1;try{molpayPaymentDetails=JSON[_0xf750('0x31')](_0x35978a);}catch(_0x1c11d6){molpayPaymentDetails=_0x35978a;}molpayPaymentDetails[_0xf750('0x39')]=moduleId,molpayPaymentDetails['wrapper_version']=wrapperVersion,transactionResultCallback=_0x54b877,window[_0xf750('0x33')]&&window[_0xf750('0x33')][_0xf750('0x3a')](),molpayDiv=document[_0xf750('0x3b')]('molpay'),molpayDiv[_0xf750('0xd')]['width']=_0xf750('0x13'),molpayDiv[_0xf750('0xd')][_0xf750('0x3c')]=_0xf750('0xf'),molpayDiv[_0xf750('0xd')][_0xf750('0x3d')]=_0xf750('0xf'),mainUiFrame=document[_0xf750('0x3e')](_0xf750('0x3f'));var _0x16a326=function(_0x1caa9a){mainUiFrame[_0xf750('0x1b')][_0xf750('0x40')](JSON[_0xf750('0x30')](molpayPaymentDetails),inAppCallback),mainUiFrame[_0xf750('0x1e')](_0xf750('0x41'),_0x16a326);};mainUiFrame[_0xf750('0xd')][_0xf750('0x3d')]=_0xf750('0xf'),mainUiFrame['style'][_0xf750('0x3c')]='0px',mainUiFrame[_0xf750('0xd')][_0xf750('0x12')]=_0xf750('0x13'),mainUiFrame[_0xf750('0xd')]['height']=_0xf750('0x13'),mainUiFrame['id']=_0xf750('0x42'),mainUiFrame[_0xf750('0x43')]='always',mainUiFrame[_0xf750('0x44')](_0xf750('0x45'),molpaySdkUrl),molpayDiv[_0xf750('0x46')](mainUiFrame),mainUiFrame[_0xf750('0x47')](_0xf750('0x41'),_0x16a326);},MOLPay[_0xf750('0x2')][_0xf750('0x48')]=function(_0x5edea1,_0x1bf5cd){try{molpayPaymentDetails=JSON['parse'](_0x5edea1);}catch(_0x30b1d7){molpayPaymentDetails=_0x5edea1;}molpayPaymentDetails[_0xf750('0x39')]=moduleId,molpayPaymentDetails[_0xf750('0x49')]=wrapperVersion,transactionResultCallback=_0x1bf5cd,molpayTransactionRequestFrame=document[_0xf750('0x3e')](_0xf750('0x3f'));var _0x5bf7c9=function(_0x2fe399){molpayTransactionRequestFrame[_0xf750('0x1b')][_0xf750('0x40')](molpayPaymentDetails,inAppCallback),molpayTransactionRequestFrame['removeEventListener'](_0xf750('0x41'),_0x5bf7c9);};molpayTransactionRequestFrame['id']=_0xf750('0x4a'),molpayTransactionRequestFrame[_0xf750('0x43')]=_0xf750('0x4b'),molpayTransactionRequestFrame[_0xf750('0x44')]('src',molpaySdkUrl),hideFrame(molpayTransactionRequestFrame),document[_0xf750('0x4c')][_0xf750('0x46')](molpayTransactionRequestFrame),molpayTransactionRequestFrame[_0xf750('0x47')](_0xf750('0x41'),_0x5bf7c9);},MOLPay[_0xf750('0x2')]['closeMolpay']=function(){mainUiFrame['contentWindow'][_0xf750('0x4d')]();},MOLPay['prototype']['testMerchantCredentials']=function(_0x2dcced,_0x2ba816){_0x2ba816&&(testMerchantCredentialsCallback=_0x2ba816),molpayCredentialsRequestFrame=document[_0xf750('0x3e')](_0xf750('0x3f'));var _0x41808d=function(_0x1a9904){molpayCredentialsRequestFrame[_0xf750('0x1b')][_0xf750('0x4e')](_0x2dcced,onTestMerchantCredentialsDone),molpayCredentialsRequestFrame[_0xf750('0x1e')]('load',_0x41808d);};molpayCredentialsRequestFrame[_0xf750('0x43')]=_0xf750('0x4b'),molpayCredentialsRequestFrame['setAttribute'](_0xf750('0x45'),molpaySdkUrl),hideFrame(molpayCredentialsRequestFrame),document[_0xf750('0x4c')][_0xf750('0x46')](molpayCredentialsRequestFrame),molpayCredentialsRequestFrame[_0xf750('0x47')](_0xf750('0x41'),_0x41808d);},MOLPay[_0xf750('0x2')]['testMerchantChannels']=function(_0x5b5339,_0xdf37a9){_0xdf37a9&&(testMerchantChannelsCallback=_0xdf37a9),molpayChannelsRequestFrame=document[_0xf750('0x3e')](_0xf750('0x3f'));var _0x32d456=function(_0x3859d8){molpayChannelsRequestFrame['contentWindow']['testMerchantChannels'](_0x5b5339,onTestMerchantChannelsDone),molpayChannelsRequestFrame['removeEventListener'](_0xf750('0x41'),_0x32d456);};molpayChannelsRequestFrame[_0xf750('0x43')]=_0xf750('0x4b'),molpayChannelsRequestFrame[_0xf750('0x44')](_0xf750('0x45'),molpaySdkUrl),hideFrame(molpayChannelsRequestFrame),document['body'][_0xf750('0x46')](molpayChannelsRequestFrame),molpayChannelsRequestFrame[_0xf750('0x47')](_0xf750('0x41'),_0x32d456);};var molpay=new MOLPay();module[_0xf750('0x4f')]=molpay; \ No newline at end of file diff --git a/package.json b/package.json index bd656c0..7038b41 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "molpay-mobile-xdk-cordova", - "version": "3.20.1", + "version": "3.20.2", "description": "MOLPay official in-app payment module for Cordova", "cordova": { "id": "molpay-mobile-xdk-cordova", diff --git a/plugin.xml b/plugin.xml index 78a0fd9..2cb88da 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,7 +1,7 @@ + version="3.20.2"> MOLPay XDK for Cordova MOLPay official in-app payment module for Cordova MOLPay Mobile Division @@ -16,7 +16,7 @@ - + @@ -27,5 +27,8 @@ Payment images + + Payment images +