[Vuejs]-"this" returns undefined in wepay callback closuer

2👍

You define

let self  = this

up top,
but inside the function(data, self) self is overwritten. Either change one of the variables and use that instead of this.
Or bind this to the function so you can use it within:

function(data, self) {

}.bind(this)

Leave a comment