I have implemented play billing api in my backend, I get success getting startTime but lineItems->expiryTime can't get don't show anything
require_once('autoload.php');
//purchases_products
$client = new Google_Client();
$client->setAuthConfig( 'credentials.json');
$client->addScope('https://www.googleapis.com/auth/androidpublisher');
$service = new Google_Service_AndroidPublisher($client);
$purchase = $service->purchases_subscriptionsv2->get(PACKAGE_NAME, $token);
echo $purchase->startTime;
//echo $purchase->lineItems;
echo json_encode($purchase['lineItems']);
// don't show anything with this
echo $purchase->lineItems->expiryTime;
i use this to get $purchase->getExpiryTimeMillis(); please note im using older version (2.10.1) of google-api-php-client