I'm doing an server-side validation for iOS receipt.
I want to send back 2 things to the client:
-the response code from Apple (an int)
-all the product identifiers (possibly an array or object)
My C# receiver class needs one int (the response code) and all the product identifiers, possibly as an array or object.
The problem in an array is that I would have to define the number of elements beforehand, which i can't guess.
For now I have this:
$obj = (object) [
'status' => $status,
'productIds' => ???????];
echo json_encode($obj);
How should I go about this?