const n={methods:{phpEncryption(t){t=JSON.stringify(t);let s=this.$CryptoJS.enc.Hex.parse("0123456470abcdef0123456789abcdef"),i=this.$CryptoJS.enc.Hex.parse("abcdef1876343516abcdef9876543210");return this.$CryptoJS.AES.encrypt(t,s,{iv:i,padding:this.$CryptoJS.pad.ZeroPadding}).toString()},async paymentDoneFn(t,s,i){const e=await this.postRequest({lang:this.langCode,api:"paymentDone",params:{data:this.phpEncryption({id:t,payment_token:s,order_method:i,user_token:await this.getUserToken()})}});return this.submitting=!1,(e==null?void 0:e.status)===200?this.$emit("success",t):(this.errorText=e.data.form.join(", "),this.$emit("error",e.data.form.join(", "))),e}}};export{n as p};
