document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?php
  2. include \'includes/google/GpapJwt.php\';
  3. class gpay {
  4.     private $_client;
  5.     private $_service;
  6.     private $_jsonAuth;
  7.     private $_loyaltyClass;
  8.     private $_loyaltyObject;
  9.     private $_gpap;
  10.  
  11.     public function __construct() {
  12.         $this->_client = new Google_Client();
  13.         $this->_jsonAuth = json_decode(file_get_contents("import/serviceAccount.json"),true);
  14.         $this->_client->setAuthConfig($this->_jsonAuth);
  15.         $this->_client->setScopes(array(\'https://www.googleapis.com/auth/wallet_object.issuer\'));
  16.  
  17.         include \'includes/google/Walletobjects.php\';
  18.         $this->_service  = new Google_Service_Walletobjects( $this->_client );
  19.         $this->_loyaltyClass = $this->_service->loyaltyclass;
  20.         $this->_loyaltyObject = $this->_service->loyaltyobject;
  21.         $this->_gpgp = new GpapJwt($this->_jsonAuth,["http://myshop.com.au"]);
  22.     }
  23. }
');