<?php
include \'includes/google/GpapJwt.php\';
class gpay {
private $_client;
private $_service;
private $_jsonAuth;
private $_loyaltyClass;
private $_loyaltyObject;
private $_gpap;
public function __construct() {
$this->_client = new Google_Client();
$this->_jsonAuth = json_decode(file_get_contents("import/serviceAccount.json"),true);
$this->_client->setAuthConfig($this->_jsonAuth);
$this->_client->setScopes(array(\'https://www.googleapis.com/auth/wallet_object.issuer\'));
include \'includes/google/Walletobjects.php\';
$this->_service = new Google_Service_Walletobjects( $this->_client );
$this->_loyaltyClass = $this->_service->loyaltyclass;
$this->_loyaltyObject = $this->_service->loyaltyobject;
$this->_gpgp = new GpapJwt($this->_jsonAuth,["http://myshop.com.au"]);
}
}