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"

We will write a custom essay sample on

Accessing object in javascript issue [duplicate] specifically for you

for only $13.90/page

Order Now

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