I'm trying to pass custom fields for my packages.
So far I have found the name of the parameter called cfields, however I don't know how to pass the field to get the custom data put into a database.
So far i have tried:
$invoice->cfields->2
No luck, and
$package->cfields->2
Still no luck.
I found that it's formatted like this in the cfields in the package purchase.
This is what it looks like in the sql database.
"2":"CUSTOMER TEXT"
I'm guessing the number 2 is the cfields id.