(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-32af82fe"],{"0b46":function(s,t,r){"use strict";r.r(t);var e=function(){var s=this,t=s._self._c;return t("div",[s.paid?t("Purchased",{attrs:{productSlug:s.product_slug}}):t("div",[t("h2",[s._v("Oops!")])])],1)},a=[],o=function(){var s=this,t=s._self._c;return t("div",{staticClass:"thank-you-container"},[t("h1",[s._v("Gracias por su compra!")]),t("img",{staticClass:"product-image",attrs:{src:s.productImage,alt:s.productName}}),t("p",{staticClass:"product-description"},[s._v(' Para comenzar tu aprendizaje ahora, puedes hacer click en "Ver Cursos". Buena suerte! ')]),t("button",{staticClass:"toCourses",on:{click:s.toCourses}},[s._v("Ver Cursos")])])},u=[],c=(r("14d9"),{name:"Purchased",props:{productSlug:String},data(){return{productImage:"",productName:""}},created(){this.getPurchaseInfo()},methods:{async getPurchaseInfo(){const{data:s}=await this.$axios.get("/public/course/details/"+this.productSlug);this.productImage=s.portada_url,this.productName=s.nombre},toCourses(){this.$router.push("/mis-cursos")}}}),i=c,n=(r("aa1c"),r("2877")),d=Object(n["a"])(i,o,u,!1,null,"fe97f750",null),p=d.exports,l={name:"Order",components:{Purchased:p},data(){return{session_id:"",product_slug:"",paid:!1,status:"",customerEmail:"",message:""}},created(){this.session_id=this.$route.query.session_id,this.product_slug=this.$route.query.product_slug,this.grabOrderInfo(this.session_id)},methods:{async grabOrderInfo(s){const t=await fetch("http://localhost:8000/grabOrderInfo",{method:"POST",body:JSON.stringify({session_id:s})}),r=await t.json();r.error?(console.log("error"),this.message=r.error):(console.log(r),this.status=r.status,this.paid="paid"===r.payment_status,this.customerEmail=r.customer_email)}}},h=l,m=Object(n["a"])(h,e,a,!1,null,null,null);t["default"]=m.exports},aa1c:function(s,t,r){"use strict";r("fc12")},fc12:function(s,t,r){}}]);
//# sourceMappingURL=chunk-32af82fe.a1b20705.js.map