Payment Gate Configuration

How do you solve an ionic jsonRes error in Ionic? The jsonRes comes from a JavaScript code that is a payment gateway code.