How I can pass json array with data to InAppBrowser using executescript event?

Hi everyone, I am trying to implement an payment gateway form for my app using inAppBrowser and I need to pass an json array with data such like amount,customer name,and some summarized personal data to the external form where the payment will be done (there will be entered payment data like card number and so on). I’m using executeScript to do this but at the payment form I get [object HTMLSpanElement] no data are passed from the controller. Here you can find the code: from the function which triggers inappbrowser and contains the array with data (the function and data are in the same controller)