webpackJsonp([118],{474:function(a,b,c){var d=c(477),e={}.hasOwnProperty,f=a.exports={stringifyData:function(a,b,c){'undefined'==typeof c&&(c=!1);var d=[];for(var f in a)e.call(a,f)&&'function'!=typeof a[f]&&('bfb_wap'!=b||'url'!=f)&&('yeepay_wap'!=b||'mode'!=f)&&'channel_url'!=f&&d.push(f+'='+(c?encodeURIComponent(a[f]):a[f]));return d.join('&')},request:function(a,b,c,d,g,h){if('undefined'==typeof XMLHttpRequest)return void console.log('Function XMLHttpRequest is undefined.');var i=new XMLHttpRequest;if('undefined'!=typeof i.timeout&&(i.timeout=6e3),b=b.toUpperCase(),'GET'===b&&'object'==typeof c&&c&&(a+='?'+f.stringifyData(c,'',!0)),i.open(b,a,!0),'undefined'!=typeof h)for(var j in h)e.call(h,j)&&i.setRequestHeader(j,h[j]);'POST'===b?(i.setRequestHeader('Content-type','application/json; charset=utf-8'),i.send(JSON.stringify(c))):i.send(),'undefined'==typeof d&&(d=function(){}),'undefined'==typeof g&&(g=function(){}),i.onreadystatechange=function(){4==i.readyState&&d(i.responseText,i.status,i)},i.onerror=function(a){g(i,0,a)}},formSubmit:function(a,b,c){if('undefined'==typeof window)return void console.log('Not a browser, form submit url: '+a);var d=document.createElement('form');for(var f in d.setAttribute('method',b),d.setAttribute('action',a),c)if(e.call(c,f)){var g=document.createElement('input');g.setAttribute('type','hidden'),g.setAttribute('name',f),g.setAttribute('value',c[f]),d.appendChild(g)}document.body.appendChild(d),d.submit()},randomString:function(a){'undefined'==typeof a&&(a=32);for(var b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',c=b.length,d='',e=0;e<a;e++)d+=b.charAt(Math.floor(Math.random()*c));return d},redirectTo:function(a,b){return d.shouldReturnUrlByCallback(b)?void d.triggerUrlReturnCallback(null,a):'undefined'==typeof window?void console.log('Not a browser, redirect url: '+a):void(window.location.href=a)},inWeixin:function(){if('undefined'==typeof navigator)return!1;var a=navigator.userAgent.toLowerCase();return-1!==a.indexOf('micromessenger')},inAlipay:function(){if('undefined'==typeof navigator)return!1;var a=navigator.userAgent.toLowerCase();return-1!==a.indexOf('alipayclient')},inWxLite:function(){return'undefined'!=typeof wx&&(wx.miniProgram||wx.requestPayment)},inAlipayLite:function(){return'undefined'!=typeof my&&my.tradePay},documentReady:function(a){return'undefined'==typeof document?void a():void('loading'==document.readyState?document.addEventListener('DOMContentLoaded',a):a())},loadUrlJs:function(a,b,c){var d=document.getElementsByTagName('head')[0],e=null;null==document.getElementById(a)?(e=document.createElement('script'),e.setAttribute('type','text/javascript'),e.setAttribute('src',b),e.setAttribute('id',a),e.async=!0,null!=c&&(e.onload=e.onreadystatechange=function(){return!e.ready&&void((!e.readyState||'loaded'==e.readyState||'complete'==e.readyState)&&(e.ready=!0,c()))}),d.appendChild(e)):null!=c&&c()}}},477:function(a,b,c){var d=c(567);a.exports={userCallback:void 0,urlReturnCallback:void 0,urlReturnChannels:['alipay_pc_direct'],innerCallback:function(a,b){'function'==typeof this.userCallback&&('undefined'==typeof b&&(b=this.error()),this.userCallback(a,b),this.userCallback=void 0,d.clear())},error:function(a,b){return a='undefined'==typeof a?'':a,b='undefined'==typeof b?'':b,{msg:a,extra:b}},triggerUrlReturnCallback:function(a,b){'function'==typeof this.urlReturnCallback&&this.urlReturnCallback(a,b)},shouldReturnUrlByCallback:function(a){return!('function'!=typeof this.urlReturnCallback)&&-1!==this.urlReturnChannels.indexOf(a)}}},483:function(a){a.exports={}},496:function(a,b,c){var d={}.hasOwnProperty,e={};a.exports=e,e.channels={alipay_lite:c(626),alipay_pc_direct:c(627),alipay_qr:c(628),alipay_wap:c(629),bfb_wap:c(630),cb_alipay_pc_direct:c(631),cb_alipay_wap:c(632),cb_wx_pub:c(633),ccb_qr:c(634),cmb_pc_qr:c(635),cmb_wallet:c(636),cp_b2b:c(637),fqlpay_qr:c(638),fqlpay_wap:c(639),isv_wap:c(640),jdpay_wap:c(641),paypal:c(642),qpay_pub:c(643),upacp_b2b:c(644),upacp_pc:c(645),upacp_wap:c(646),wx_lite:c(647),wx_pub:c(648),wx_wap:c(649),yeepay_wap:c(650)},e.extras={ap:c(651)},e.getChannelModule=function(a){return d.call(e.channels,a)?e.channels[a]:void 0},e.getExtraModule=function(a){return d.call(e.extras,a)?e.extras[a]:void 0}},514:function(a,b,c){var d=c(474),e=c(477),f={}.hasOwnProperty;a.exports={handleCharge:function(a){var b,c=a.credential[a.channel];if('string'==typeof c)b=c;else if(f.call(c,'url'))b=c.url;else return void e.innerCallback('fail',e.error('invalid_credential','credential format is incorrect'));d.redirectTo(b,a.channel)}}},567:function(a,b,c){var d=c(477),e={}.hasOwnProperty;a.exports={id:null,or_id:null,channel:null,app:null,credential:{},extra:null,livemode:null,order_no:null,time_expire:null,init:function(a){var b;if('string'==typeof a)try{b=JSON.parse(a)}catch(a){return void d.innerCallback('fail',d.error('json_decode_fail',a))}else b=a;if('undefined'==typeof b)return void d.innerCallback('fail',d.error('json_decode_fail'));if(e.call(b,'object')&&'order'==b.object){b.or_id=b.id,b.order_no=b.merchant_order_no;var c=b.charge_essentials;if(b.channel=c.channel,b.credential=c.credential,b.extra=c.extra,e.call(b,'charge')&&null!=b.charge)b.id=b.charge;else if(e.call(c,'id')&&null!=c.id)b.id=c.id;else if(e.call(b,'charges'))for(var f=0;f<b.charges.data.length;f++)if(b.charges.data[f].channel===c.channel){b.id=b.charges.data[f].id;break}}else e.call(b,'object')&&'recharge'==b.object&&(b=b.charge);for(var g in this)e.call(b,g)&&(this[g]=b[g]);return this},clear:function(){for(var a in this)'function'!=typeof this[a]&&(this[a]=null)}}},568:function(a,b,c){var d=c(474),e=c(483),f=c(624),g={seperator:'###',limit:1,report_url:'https://statistics.pingxx.com/one_stats',timeout:100},h=function(a,b){var c=new RegExp('(^|&)'+b+'=([^&]*)(&|$)','i'),d=a.substr(0).match(c);return null===d?null:unescape(d[2])},i=function(){return navigator.userAgent},j=function(){return window.location.host};g.store=function(a){if('undefined'!=typeof localStorage&&null!==localStorage){var b=this,c={};c.app_id=a.app_id||e.app_id||'app_not_defined',c.ch_id=a.ch_id||'',c.channel=a.channel||'',c.type=a.type||'',c.user_agent=i(),c.host=j(),c.time=new Date().getTime(),c.puid=e.puid;var d='app_id='+c.app_id+'&channel='+c.channel+'&ch_id='+c.ch_id+'&host='+c.host+'&time='+c.time+'&type='+c.type+'&user_agent='+c.user_agent+'&puid='+c.puid,f=d;null!==localStorage.getItem('PPP_ONE_STATS')&&0!==localStorage.getItem('PPP_ONE_STATS').length&&(f=localStorage.getItem('PPP_ONE_STATS')+b.seperator+d);try{localStorage.setItem('PPP_ONE_STATS',f)}catch(a){}}},g.send=function(){if('undefined'!=typeof localStorage&&null!==localStorage){var a=this,b=localStorage.getItem('PPP_ONE_STATS');if(!(null===b||b.split(a.seperator).length<a.limit))try{for(var c=[],e=b.split(a.seperator),g=f(e.join('&')),j=0;j<e.length;j++)c.push({app_id:h(e[j],'app_id'),channel:h(e[j],'channel'),ch_id:h(e[j],'ch_id'),host:h(e[j],'host'),time:h(e[j],'time'),type:h(e[j],'type'),user_agent:h(e[j],'user_agent'),puid:h(e[j],'puid')});d.request(a.report_url,'POST',c,function(a,b){200==b&&localStorage.removeItem('PPP_ONE_STATS')},void 0,{"X-Pingpp-Report-Token":g})}catch(a){}}},g.report=function(a){var b=this;b.store(a),setTimeout(function(){d.inWxLite()||b.send()},b.timeout)},a.exports=g},590:function(a,b,c){var d=c(622).v,e={}.hasOwnProperty,f=function(){c(623).init()};f.prototype.version=d,a.exports=new f;var g=c(625),h=c(477),i=c(496),j=c(483),k=c(568),l=c(567);f.prototype.createPayment=function(a,b,c,d){if('function'==typeof b&&(h.userCallback=b),l.init(a),!e.call(l,'id'))return void h.innerCallback('fail',h.error('invalid_charge','no_charge_id'));if(!e.call(l,'channel'))return void h.innerCallback('fail',h.error('invalid_charge','no_channel'));e.call(l,'app')&&('string'==typeof l.app?j.app_id=l.app:'object'==typeof l.app&&'string'==typeof l.app.id&&(j.app_id=l.app.id)),k.report({type:j.type||'pure_sdk_click',channel:l.channel,ch_id:l.id});var f=l.channel;if(!e.call(l,'credential'))return void h.innerCallback('fail',h.error('invalid_charge','no_credential'));if(!l.credential)return void h.innerCallback('fail',h.error('invalid_credential','credential_is_undefined'));if(!e.call(l.credential,f))return void h.innerCallback('fail',h.error('invalid_credential','credential_is_incorrect'));if(!e.call(l,'livemode'))return void h.innerCallback('fail',h.error('invalid_charge','no_livemode_field'));var m=i.getChannelModule(f);return'undefined'==typeof m?(console.error('channel module "'+f+'" is undefined'),void h.innerCallback('fail',h.error('invalid_channel','channel module "'+f+'" is undefined'))):!1===l.livemode?void(e.call(m,'runTestMode')?m.runTestMode(l):g.runTestMode(l)):void('undefined'!=typeof c&&(j.signature=c),'boolean'==typeof d&&(j.debug=d),m.handleCharge(l))},f.prototype.setAPURL=function(a){j.APURL=a},f.prototype.setUrlReturnCallback=function(a,b){if('function'==typeof a)h.urlReturnCallback=a;else throw'callback need to be a function';if('undefined'!=typeof b)if(Array.isArray(b))h.urlReturnChannels=b;else throw'channels need to be an array'}},622:function(a){a.exports={v:'2.2.9'}},623:function(a,b,c){var d=c(483),e=c(474),f=c(568);a.exports={SRC_URL:'https://cookie.pingxx.com',init:function(){var a=this;e.documentReady(function(){try{e.inWxLite()||e.inAlipayLite()||a.initPuid()}catch(a){}})},initPuid:function(){if('undefined'!=typeof window&&'undefined'!=typeof localStorage&&null!==localStorage){var a=localStorage.getItem('pingpp_uid');if(null===a){a=e.randomString();try{localStorage.setItem('pingpp_uid',a)}catch(a){}}if(d.puid=a,!document.getElementById('p_analyse_iframe')){var b;try{b=document.createElement('iframe')}catch(a){b=document.createElement('<iframe name="ifr"></iframe>')}b.id='p_analyse_iframe',b.src=this.SRC_URL+'/?puid='+a,b.style.display='none',document.body.appendChild(b)}setTimeout(function(){f.send()},0)}}}},624:function(a){(function(){function e(a,b){var c=(65535&a)+(65535&b);return(a>>16)+(b>>16)+(c>>16)<<16|65535&c}function c(a,b){return a<<b|a>>>32-b}function f(d,f,a,b,g,h){return e(c(e(e(f,d),e(b,h)),g),a)}function g(e,a,g,c,d,h,i){return f(a&g|~a&c,e,a,d,h,i)}function h(e,a,b,c,g,h,i){return f(a&c|b&~c,e,a,g,h,i)}function j(e,a,b,c,d,g,h){return f(a^b^c,e,a,d,g,h)}function k(e,a,b,c,g,h,i){return f(b^(a|~c),e,a,g,h,i)}function b(f,l){f[l>>5]|=128<<l%32,f[(l+64>>>9<<4)+14]=l;var m,i,n,o,p,q=1732584193,a=-271733879,b=-1732584194,c=271733878;for(m=0;m<f.length;m+=16)i=q,n=a,o=b,p=c,q=g(q,a,b,c,f[m],7,-680876936),c=g(c,q,a,b,f[m+1],12,-389564586),b=g(b,c,q,a,f[m+2],17,606105819),a=g(a,b,c,q,f[m+3],22,-1044525330),q=g(q,a,b,c,f[m+4],7,-176418897),c=g(c,q,a,b,f[m+5],12,1200080426),b=g(b,c,q,a,f[m+6],17,-1473231341),a=g(a,b,c,q,f[m+7],22,-45705983),q=g(q,a,b,c,f[m+8],7,1770035416),c=g(c,q,a,b,f[m+9],12,-1958414417),b=g(b,c,q,a,f[m+10],17,-42063),a=g(a,b,c,q,f[m+11],22,-1990404162),q=g(q,a,b,c,f[m+12],7,1804603682),c=g(c,q,a,b,f[m+13],12,-40341101),b=g(b,c,q,a,f[m+14],17,-1502002290),a=g(a,b,c,q,f[m+15],22,1236535329),q=h(q,a,b,c,f[m+1],5,-165796510),c=h(c,q,a,b,f[m+6],9,-1069501632),b=h(b,c,q,a,f[m+11],14,643717713),a=h(a,b,c,q,f[m],20,-373897302),q=h(q,a,b,c,f[m+5],5,-701558691),c=h(c,q,a,b,f[m+10],9,38016083),b=h(b,c,q,a,f[m+15],14,-660478335),a=h(a,b,c,q,f[m+4],20,-405537848),q=h(q,a,b,c,f[m+9],5,568446438),c=h(c,q,a,b,f[m+14],9,-1019803690),b=h(b,c,q,a,f[m+3],14,-187363961),a=h(a,b,c,q,f[m+8],20,1163531501),q=h(q,a,b,c,f[m+13],5,-1444681467),c=h(c,q,a,b,f[m+2],9,-51403784),b=h(b,c,q,a,f[m+7],14,1735328473),a=h(a,b,c,q,f[m+12],20,-1926607734),q=j(q,a,b,c,f[m+5],4,-378558),c=j(c,q,a,b,f[m+8],11,-2022574463),b=j(b,c,q,a,f[m+11],16,1839030562),a=j(a,b,c,q,f[m+14],23,-35309556),q=j(q,a,b,c,f[m+1],4,-1530992060),c=j(c,q,a,b,f[m+4],11,1272893353),b=j(b,c,q,a,f[m+7],16,-155497632),a=j(a,b,c,q,f[m+10],23,-1094730640),q=j(q,a,b,c,f[m+13],4,681279174),c=j(c,q,a,b,f[m],11,-358537222),b=j(b,c,q,a,f[m+3],16,-722521979),a=j(a,b,c,q,f[m+6],23,76029189),q=j(q,a,b,c,f[m+9],4,-640364487),c=j(c,q,a,b,f[m+12],11,-421815835),b=j(b,c,q,a,f[m+15],16,530742520),a=j(a,b,c,q,f[m+2],23,-995338651),q=k(q,a,b,c,f[m],6,-198630844),c=k(c,q,a,b,f[m+7],10,1126891415),b=k(b,c,q,a,f[m+14],15,-1416354905),a=k(a,b,c,q,f[m+5],21,-57434055),q=k(q,a,b,c,f[m+12],6,1700485571),c=k(c,q,a,b,f[m+3],10,-1894986606),b=k(b,c,q,a,f[m+10],15,-1051523),a=k(a,b,c,q,f[m+1],21,-2054922799),q=k(q,a,b,c,f[m+8],6,1873313359),c=k(c,q,a,b,f[m+15],10,-30611744),b=k(b,c,q,a,f[m+6],15,-1560198380),a=k(a,b,c,q,f[m+13],21,1309151649),q=k(q,a,b,c,f[m+4],6,-145523070),c=k(c,q,a,b,f[m+11],10,-1120210379),b=k(b,c,q,a,f[m+2],15,718787259),a=k(a,b,c,q,f[m+9],21,-343485551),q=e(q,i),a=e(a,n),b=e(b,o),c=e(c,p);return[q,a,b,c]}function d(a){var b,c='';for(b=0;b<32*a.length;b+=8)c+=String.fromCharCode(255&a[b>>5]>>>b%32);return c}function l(a){var b,c=[];for(c[(a.length>>2)-1]=void 0,b=0;b<c.length;b+=1)c[b]=0;for(b=0;b<8*a.length;b+=8)c[b>>5]|=(255&a.charCodeAt(b/8))<<b%32;return c}function i(a){return d(b(l(a),8*a.length))}function m(a,c){var e,f,g=l(a),h=[],i=[];for(h[15]=i[15]=void 0,16<g.length&&(g=b(g,8*a.length)),e=0;16>e;e+=1)h[e]=909522486^g[e],i[e]=1549556828^g[e];return f=b(h.concat(l(c)),512+8*c.length),d(b(i.concat(f),640))}function n(a){var b,c,d='0123456789abcdef',e='';for(c=0;c<a.length;c+=1)b=a.charCodeAt(c),e+=d.charAt(15&b>>>4)+d.charAt(15&b);return e}function o(a){return unescape(encodeURIComponent(a))}function p(a){return i(o(a))}function q(a){return n(p(a))}function r(a,b){return m(o(a),o(b))}function s(a,b){return n(r(a,b))}a.exports=function(a,b,c){return b?c?r(b,a):s(b,a):c?p(a):q(a)}})()},625:function(a,b,c){var d=c(474),e={}.hasOwnProperty;a.exports={PINGPP_MOCK_URL:'http://sissi.pingxx.com/mock.php',runTestMode:function(a){var b={ch_id:a.id,scheme:'http',channel:a.channel};e.call(a,'order_no')?b.order_no=a.order_no:e.call(a,'orderNo')&&(b.order_no=a.orderNo),e.call(a,'time_expire')?b.time_expire=a.time_expire:e.call(a,'timeExpire')&&(b.time_expire=a.timeExpire),e.call(a,'extra')&&(b.extra=encodeURIComponent(JSON.stringify(a.extra))),d.redirectTo(this.PINGPP_MOCK_URL+'?'+d.stringifyData(b),a.channel)}}},626:function(a,b,c){var d=c(477);a.exports={PINGPP_NOTIFY_URL_BASE:'https://notify.pingxx.com/notify',handleCharge:function(a){var b=a.credential[a.channel];b?this.callpay(b):d.innerCallback('fail',d.error('invalid_credential','missing_alipay_lite'))},alipayLiteEnabled:function(){return'undefined'!=typeof my&&my.tradePay},callpay:function(a){if(!this.alipayLiteEnabled())return void console.log('\u8BF7\u5728\u652F\u4ED8\u5B9D\u5C0F\u7A0B\u5E8F\u4E2D\u6253\u5F00');var b={};b.tradeNO=a,b.complete=function(a){9e3==a.resultCode?d.innerCallback('success'):6001==a.resultCode?d.innerCallback('cancel',d.error('\u7528\u6237\u53D6\u6D88\u652F\u4ED8')):d.innerCallback('fail',d.error('\u652F\u4ED8\u5931\u8D25'))},my.tradePay(b)},runTestMode:function(a){var b='/charges/'+a.id;my.httpRequest({url:this.PINGPP_NOTIFY_URL_BASE+b+'?livemode=false',success:function(a){'success'==a.data?d.innerCallback('success'):d.innerCallback('fail',d.error('testmode_notify_fail'))},fail:function(){d.innerCallback('fail',d.error('network_err'))}})}}},627:function(a,b,c){var d=c(474),e={}.hasOwnProperty;a.exports={ALIPAY_PC_DIRECT_URL:'https://mapi.alipay.com/gateway.do',handleCharge:function(a){var b=a.channel,c=a.credential[b],f=this.ALIPAY_PC_DIRECT_URL;e.call(c,'channel_url')&&(f=c.channel_url),!e.call(c,'_input_charset')&&e.call(c,'service')&&'create_direct_pay_by_user'===c.service&&(c._input_charset='utf-8');var g=d.stringifyData(c,b,!0);d.redirectTo(f+'?'+g,b)}}},628:function(a,b,c){var d={}.hasOwnProperty,e=c(477);a.exports={handleCharge:function(a){var b=a.credential[a.channel];d.call(b,'transaction_no')?this.tradePay(b.transaction_no):e.innerCallback('fail',e.error('invalid_credential','missing_field_transaction_no'))},ready:function(a){window.AlipayJSBridge?a&&a():document.addEventListener('AlipayJSBridgeReady',a,!1)},tradePay:function(a){this.ready(function(){AlipayJSBridge.call('tradePay',{tradeNO:a},function(a){'9000'==a.resultCode?e.innerCallback('success'):'6001'==a.resultCode?e.innerCallback('cancel',e.error(a.result)):e.innerCallback('fail',e.error(a.result))})})}}},629:function(a,b,c){var d=c(474),e=c(496),f={}.hasOwnProperty;a.exports={ALIPAY_WAP_URL_OLD:'https://wappaygw.alipay.com/service/rest.htm',ALIPAY_WAP_URL:'https://mapi.alipay.com/gateway.do',handleCharge:function(a){var b=a.channel,c=a.credential[b],g=this.ALIPAY_WAP_URL;f.call(c,'req_data')?g=this.ALIPAY_WAP_URL_OLD:f.call(c,'channel_url')&&(g=c.channel_url),!f.call(c,'_input_charset')&&(f.call(c,'service')&&'alipay.wap.create.direct.pay.by.user'===c.service||f.call(c,'req_data'))&&(c._input_charset='utf-8');var h=d.stringifyData(c,b,!0),i=g+'?'+h,j=e.getExtraModule('ap');d.inWeixin()&&'undefined'!=typeof j?j.pay(i):d.redirectTo(i,b)}}},630:function(a,b,c){var d=c(474),e=c(477),f={}.hasOwnProperty;a.exports={handleCharge:function(a){var b=a.channel,c=a.credential[b];return f.call(c,'url')?void d.redirectTo(c.url+'?'+d.stringifyData(c,b),b):void e.innerCallback('fail',e.error('invalid_credential','missing_field:url'))}}},631:function(a,b,c){var d=c(474),e={}.hasOwnProperty;a.exports={ALIPAY_PC_DIRECT_URL:'https://mapi.alipay.com/gateway.do',handleCharge:function(a){var b=a.channel,c=a.credential[b],f=this.ALIPAY_PC_DIRECT_URL;e.call(c,'channel_url')&&(f=c.channel_url),!e.call(c,'_input_charset')&&e.call(c,'service')&&'create_direct_pay_by_user'===c.service&&(c._input_charset='utf-8');var g=d.stringifyData(c,b,!0);d.redirectTo(f+'?'+g,b)}}},632:function(a,b,c){var d=c(474),e=c(496),f={}.hasOwnProperty;a.exports={ALIPAY_WAP_URL_OLD:'https://wappaygw.alipay.com/service/rest.htm',ALIPAY_WAP_URL:'https://mapi.alipay.com/gateway.do',handleCharge:function(a){var b=a.channel,c=a.credential[b],g=this.ALIPAY_WAP_URL;f.call(c,'req_data')?g=this.ALIPAY_WAP_URL_OLD:f.call(c,'channel_url')&&(g=c.channel_url),!f.call(c,'_input_charset')&&(f.call(c,'service')&&'alipay.wap.create.direct.pay.by.user'===c.service||f.call(c,'req_data'))&&(c._input_charset='utf-8');var h=d.stringifyData(c,b,!0),i=g+'?'+h,j=e.getExtraModule('ap');d.inWeixin()&&'undefined'!=typeof j?j.pay(i):d.redirectTo(i,b)}}},633:function(a,b,c){var d=c(477),e=c(474),f=c(483),g=c(496),h={}.hasOwnProperty;a.exports={PINGPP_NOTIFY_URL_BASE:'https://notify.pingxx.com/notify',handleCharge:function(a){for(var b=a.credential[a.channel],c=['appId','timeStamp','nonceStr','package','signType','paySign'],e=0;e<c.length;e++)if(!h.call(b,c[e]))return void d.innerCallback('fail',d.error('invalid_credential','missing_field_'+c[e]));f.jsApiParameters=b,this.callpay()},callpay:function(){var a=this,b=g.getExtraModule('wx_jssdk');if('undefined'!=typeof b&&b.jssdkEnabled())b.callpay();else if('undefined'==typeof WeixinJSBridge){var c=function(){a.jsApiCall()};document.addEventListener?document.addEventListener('WeixinJSBridgeReady',c,!1):document.attachEvent&&(document.attachEvent('WeixinJSBridgeReady',c),document.attachEvent('onWeixinJSBridgeReady',c))}else this.jsApiCall()},jsApiCall:function(){h.call(f,'jsApiParameters')&&WeixinJSBridge.invoke('getBrandWCPayRequest',f.jsApiParameters,function(a){delete f.jsApiParameters,'get_brand_wcpay_request:ok'==a.err_msg?d.innerCallback('success'):'get_brand_wcpay_request:cancel'==a.err_msg?d.innerCallback('cancel'):d.innerCallback('fail',d.error('wx_result_fail',a.err_msg))})},runTestMode:function(a){var b=confirm('\u6A21\u62DF\u4ED8\u6B3E\uFF1F');if(b){var c='/charges/'+a.id;e.request(this.PINGPP_NOTIFY_URL_BASE+c+'?livemode=false','GET',null,function(a,b){if(200<=b&&400>b&&'success'==a)d.innerCallback('success');else{d.innerCallback('fail',d.error('testmode_notify_fail','http_code:'+b+';response:'+a))}},function(){d.innerCallback('fail',d.error('network_err'))})}}}},634:function(a,b,c){var d=c(514);a.exports={handleCharge:function(a){d.handleCharge(a)}}},635:function(a,b,c){var d=c(474),e={}.hasOwnProperty;a.exports={handleCharge:function(a){var b,c=a.channel,f=a.credential[c];e.call(f,'channel_url')&&(b=f.channel_url,delete f.channel_url),d.formSubmit(b,'post',f)}}},636:function(a,b,c){var d=c(474),e={}.hasOwnProperty;a.exports={CMB_WALLET_URL:'https://netpay.cmbchina.com/netpayment/BaseHttp.dll?MB_EUserPay',handleCharge:function(a){var b=a.credential[a.channel],c=this.CMB_WALLET_URL;e.call(b,'ChannelUrl')&&(c=b.ChannelUrl,delete b.ChannelUrl),e.call(b,'channelVersion')&&delete b.channelVersion,d.formSubmit(c,'post',b)}}},637:function(a,b,c){var d=c(474);a.exports={CP_B2B_URL:'https://payment.chinapay.com/CTITS/service/rest/page/nref/000000000017/0/0/0/0/0',handleCharge:function(a){var b=a.credential[a.channel];d.formSubmit(this.CP_B2B_URL,'post',b)}}},638:function(a,b,c){var d=c(514);a.exports={handleCharge:function(a){d.handleCharge(a)}}},639:function(a,b,c){var d=c(514);a.exports={handleCharge:function(a){d.handleCharge(a)}}},640:function(a,b,c){var d=c(514),e=c(477),f=c(474),g={}.hasOwnProperty;a.exports={handleCharge:function(a){var b=a.extra;if(g.call(b,'pay_channel')){var c=b.pay_channel;if('wx'===c&&!f.inWeixin())return void e.innerCallback('fail',e.error('Not in the WeChat browser'));if('alipay'===c&&!f.inAlipay())return void e.innerCallback('fail',e.error('Not in the Alipay browser'))}else return void e.innerCallback('fail',e.error('invalid_charge','charge \u683C\u5F0F\u4E0D\u6B63\u786E'));d.handleCharge(a)}}},641:function(a,b,c){var d=c(474),e={}.hasOwnProperty;a.exports={JDPAY_WAP_URL_OLD:'https://m.jdpay.com/wepay/web/pay',JDPAY_H5_URL:'https://h5pay.jd.com/jdpay/saveOrder',JDPAY_PC_URL:'https://wepay.jd.com/jdpay/saveOrder',handleCharge:function(a){var b=a.credential[a.channel],c=this.JDPAY_H5_URL;e.call(b,'channelUrl')?(c=b.channelUrl,delete b.channelUrl):e.call(b,'merchantRemark')&&(c=this.JDPAY_WAP_URL_OLD),d.formSubmit(c,'post',b)}}},642:function(a,b,c){var d=c(474);a.exports={handleCharge:function(a){var b=a.credential[a.channel];d.redirectTo(b,a.channel)}}},643:function(a,b,c){var d=c(477),e=c(474),f=c(483),g={}.hasOwnProperty;a.exports={SRC_URL:'https://open.mobile.qq.com/sdk/qqapi.js?_bid=152',ID:'mqq_api',handleCharge:function(a){var b=a.credential[a.channel];return g.call(b,'token_id')?void(f.tokenId=b.token_id,e.loadUrlJs(this.ID,this.SRC_URL,this.callpay)):void d.innerCallback('fail',d.error('invalid_credential','missing_token_id'))},callpay:function(){if('undefined'!=typeof mqq){if(0==mqq.QQVersion)return d.innerCallback('fail',d.error('Not in the QQ client')),void delete f.tokenId;mqq.tenpay.pay({tokenId:f.tokenId},function(a){0==a.resultCode?d.innerCallback('success'):d.innerCallback('fail',d.error(a.retmsg))})}else d.innerCallback('fail',d.error('network_err'));delete f.tokenId}}},644:function(a,b,c){var d=c(474),e={}.hasOwnProperty;a.exports={handleCharge:function(a){var b,c=a.channel,f=a.credential[c];e.call(f,'channel_url')&&(b=f.channel_url,delete f.channel_url),d.formSubmit(b,'post',f)}}},645:function(a,b,c){var d=c(474);a.exports={UPACP_PC_URL:'https://gateway.95516.com/gateway/api/frontTransReq.do',handleCharge:function(a){var b=a.credential[a.channel];d.formSubmit(this.UPACP_PC_URL,'post',b)}}},646:function(a,b,c){var d=c(474);a.exports={UPACP_WAP_URL:'https://gateway.95516.com/gateway/api/frontTransReq.do',handleCharge:function(a){var b=a.credential[a.channel];d.formSubmit(this.UPACP_WAP_URL,'post',b)}}},647:function(a,b,c){var d=c(483),e=c(477),f={}.hasOwnProperty;a.exports={PINGPP_NOTIFY_URL_BASE:'https://notify.pingxx.com/notify',handleCharge:function(a){for(var b=a.credential[a.channel],c=['appId','timeStamp','nonceStr','package','signType','paySign'],g=0;g<c.length;g++)if(!f.call(b,c[g]))return void e.innerCallback('fail',e.error('invalid_credential','missing_field_'+c[g]));d.jsApiParameters=b,this.callpay()},wxLiteEnabled:function(){return'undefined'!=typeof wx&&wx.requestPayment},callpay:function(){if(!this.wxLiteEnabled())return void console.log('\u8BF7\u5728\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F\u4E2D\u6253\u5F00');var a=d.jsApiParameters;delete a.appId,a.complete=function(a){'requestPayment:ok'===a.errMsg&&e.innerCallback('success'),('requestPayment:cancel'===a.errMsg||'requestPayment:fail cancel'===a.errMsg)&&e.innerCallback('cancel',e.error('\u7528\u6237\u53D6\u6D88\u652F\u4ED8')),'undefined'!==a.err_code&&'undefined'!==a.err_desc&&e.innerCallback('fail',e.error(a.err_desc,a))},wx.requestPayment(a)},runTestMode:function(a){var b='/charges/'+a.id;wx.request({url:this.PINGPP_NOTIFY_URL_BASE+b+'?livemode=false',success:function(a){'success'==a.data?e.innerCallback('success'):e.innerCallback('fail',e.error('testmode_notify_fail'))},fail:function(){e.innerCallback('fail',e.error('network_err'))}})}}},648:function(a,b,c){var d=c(477),e=c(474),f=c(483),g=c(496),h={}.hasOwnProperty;a.exports={PINGPP_NOTIFY_URL_BASE:'https://notify.pingxx.com/notify',handleCharge:function(a){for(var b=a.credential[a.channel],c=['appId','timeStamp','nonceStr','package','signType','paySign'],e=0;e<c.length;e++)if(!h.call(b,c[e]))return void d.innerCallback('fail',d.error('invalid_credential','missing_field_'+c[e]));f.jsApiParameters=b,this.callpay()},callpay:function(){var a=this,b=g.getExtraModule('wx_jssdk');if('undefined'!=typeof b&&b.jssdkEnabled())b.callpay();else if('undefined'==typeof WeixinJSBridge){var c=function(){a.jsApiCall()};document.addEventListener?document.addEventListener('WeixinJSBridgeReady',c,!1):document.attachEvent&&(document.attachEvent('WeixinJSBridgeReady',c),document.attachEvent('onWeixinJSBridgeReady',c))}else this.jsApiCall()},jsApiCall:function(){h.call(f,'jsApiParameters')&&WeixinJSBridge.invoke('getBrandWCPayRequest',f.jsApiParameters,function(a){delete f.jsApiParameters,'get_brand_wcpay_request:ok'==a.err_msg?d.innerCallback('success'):'get_brand_wcpay_request:cancel'==a.err_msg?d.innerCallback('cancel'):d.innerCallback('fail',d.error('wx_result_fail',a.err_msg))})},runTestMode:function(a){var b=confirm('\u6A21\u62DF\u4ED8\u6B3E\uFF1F');if(b){var c='/charges/'+a.id;e.request(this.PINGPP_NOTIFY_URL_BASE+c+'?livemode=false','GET',null,function(a,b){if(200<=b&&400>b&&'success'==a)d.innerCallback('success');else{d.innerCallback('fail',d.error('testmode_notify_fail','http_code:'+b+';response:'+a))}},function(){d.innerCallback('fail',d.error('network_err'))})}}}},649:function(a,b,c){var d=c(474),e=c(477),f={}.hasOwnProperty;a.exports={handleCharge:function(a){var b=a.credential[a.channel];'string'==typeof b?d.redirectTo(b,a.channel):'object'==typeof b&&f.call(b,'url')?d.redirectTo(b.url,a.channel):e.innerCallback('fail',e.error('invalid_credential','credential \u683C\u5F0F\u4E0D\u6B63\u786E'))}}},650:function(a,b,c){var d=c(474),e=c(477),f={}.hasOwnProperty;a.exports={YEEPAY_WAP_URL:'https://ok.yeepay.com/paymobile/api/pay/request',YEEPAY_WAP_TEST_URL:'http://mobiletest.yeepay.com/paymobile/api/pay/request',handleCharge:function(a){for(var b=a.channel,c=a.credential[b],g=['merchantaccount','encryptkey','data'],h=0;h<g.length;h++)if(!f.call(c,g[h]))return void e.innerCallback('fail',e.error('invalid_credential','missing_field_'+g[h]));var i;i=f.call(c,'mode')&&'test'==c.mode?this.YEEPAY_WAP_TEST_URL:this.YEEPAY_WAP_URL,d.redirectTo(i+'?'+d.stringifyData(c,b,!0),a.channel)}}},651:function(c,a,b){var i=String.fromCharCode,e=b(483),f={}.hasOwnProperty;(function(){var g={},b={};b.PADCHAR='=',b.ALPHA='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',b.makeDOMException=function(){try{return new DOMException(DOMException.INVALID_CHARACTER_ERR)}catch(b){var a=new Error('DOM Exception 5');return a.code=a.number=5,a.name=a.description='INVALID_CHARACTER_ERR',a.toString=function(){return'Error: '+a.name+': '+a.message},a}},b.getbyte64=function(a,e){var d=b.ALPHA.indexOf(a.charAt(e));if(-1===d)throw b.makeDOMException();return d},b.decode=function(a){a=''+a;var f,h,e,g=b.getbyte64,j=a.length;if(0===j)return a;if(0!=j%4)throw b.makeDOMException();f=0,a.charAt(j-1)===b.PADCHAR&&(f=1,a.charAt(j-2)===b.PADCHAR&&(f=2),j-=4);var d=[];for(h=0;h<j;h+=4)e=g(a,h)<<18|g(a,h+1)<<12|g(a,h+2)<<6|g(a,h+3),d.push(i(e>>16,255&e>>8,255&e));return 1===f?(e=g(a,h)<<18|g(a,h+1)<<12|g(a,h+2)<<6,d.push(i(e>>16,255&e>>8))):2===f?(e=g(a,h)<<18|g(a,h+1)<<12,d.push(i(e>>16))):void 0,d.join('')},b.getbyte=function(a,e){var d=a.charCodeAt(e);if(255<d)throw b.makeDOMException();return d},b.encode=function(a){if(1!==arguments.length)throw new SyntaxError('Not enough arguments');var f,e,i=b.PADCHAR,g=b.ALPHA,h=b.getbyte,j=[];a=''+a;var c=a.length-a.length%3;if(0===a.length)return a;for(f=0;f<c;f+=3)e=h(a,f)<<16|h(a,f+1)<<8|h(a,f+2),j.push(g.charAt(e>>18)),j.push(g.charAt(63&e>>12)),j.push(g.charAt(63&e>>6)),j.push(g.charAt(63&e));switch(a.length-c){case 1:e=h(a,f)<<16,j.push(g.charAt(e>>18)+g.charAt(63&e>>12)+i+i);break;case 2:e=h(a,f)<<16|h(a,f+1)<<8,j.push(g.charAt(e>>18)+g.charAt(63&e>>12)+g.charAt(63&e>>6)+i);}return j.join('')},g.url='pay.htm',g.pay=function(a){var d=encodeURIComponent(b.encode(a));f.call(e,'APURL')&&(g.url=e.APURL),location.href=g.url+'?goto='+d},g.decode=function(a){return b.decode(decodeURIComponent(a))},c.exports=g})()}});
//# sourceMappingURL=118.3676469c3f940bd35a03.js.map