Accessing object in javascript issue [duplicate]

This is the result of my console.log(params):

currency_id: false
customer_id: 127505
“payment[account_name]”: “”
“payment[iban]”: “”
“payment[method]”: “adyen_sepa”
store_id: “1”

I got this from ajax call and when I am doing this onSuccess :

console.log(params.customer_id); // I got the right value
console.log(params.payment[‘method’]) // I am getting undefined
var obj = “payment[‘method’]”;
console.log(params.obj) // still undefined

How can I get teh value from payment[method] ? Thnx

Tagged In :

Get help with your homework

Haven't found the Essay You Want? Get your custom essay sample For Only $13.90/page

Sarah from studyhippoHi there, would you like to get such a paper? How about receiving a customized one?

Check it out