Пожалуйста, кто-нибудь может подсказать, почему мой код возвращает код ошибки
callback: function (response) {
//verification of payment before proceeing with next allowSyntheticDefaultImports
// post to server to verify transaction before giving value
let verifyresponse=self.vtpassProvider.verifyPayment(response.reference).then(data =>{
this.responseData=data;
console.log("Response is herejj" +JSON.stringify(data['data']['authorization']['authorization_code']));
this.restProvider.addLog("111","","info","ServiceCall_Response","History"+"899292");
},err => {
console.log('Fetch Error: ', err);
})
console.log(response);
// ERROR RETURNED polyfills.js: 3 Unhandled Promise rejection: Невозможно прочитать свойство addLog из undefined;Зона:;Задача: Promise.then;Значение: TypeError: Невозможно прочитать свойство addLog с неопределенным значением