Best practices for order-table?

Hi,

i am currently developing a food delivery-service, which uses an external service for checkout via. API. After ordering i receive the required data back to be able to create an order in the panel. I found this cookbook: Create pages from frontend | Kirby CMS
Are ‘name’, ‘company’… field-names in this case?

$data = [
    'name'    => get('name'),
    'company' => get('company'),
    'email'   => get('email'),
    'message' => get('message')
];

And is it also possible to do more complex stuff like structured fields for the lineitems. What is best practice here?

Greetings

Yes.

Yes, you can store an array yaml-encoded for the structure field.

Okey, so its pretty straight-forwad.

Thank you very much