Estoy tratando de esperar la respuesta de axios en takePaymentCallback() pero siempre regresa indefinido, ¿cómo puedo llamar a esa función correctamente?
async takePaymentCallback(content, successCallback) { const response = await this.takeCardPayment(JSON.parse(content)); console.log('res:', response); } async takeCardPayment(formData) { this.$axios .post(`/api/enterprise/Payment/TakeCardPayment`, formData) .then(res => { if (!res.ok) { console.error( 'POST Take Card Payment - ' + res.problem, res.data ); return res; } return res; }); },