Help needed with syntax for repeating within js - PayPal Checkout Cart

“items” in your JavaScript is expecting an array, so you can point to any array in your dmx app.

“items”: dmx.app.data.myarray 

To find the actual path to your array, you can execute dmx.app.data in the dev console and find your array.

Just make sure the array has the exact elements the js needs. You can always insert into a datastore in order to get the element names correct, and then point the js to that.

1 Like