Datastore not showing array fields when trying to add or update

That's an excellent thread and explains exactly the issue I have. For some reason I completely missed that last year when it was posted.

My need for arrays is to create the same structure as required by PayPal Checkout. Please see this thread for the background:

If you're able to just give me some example code then I'll happily hand-write it. I just need a steer in the right direction.