Skip to content

Commit

Permalink
Merge pull request #29 from ball00n-/master
Browse files Browse the repository at this point in the history
Fix service account validation key loading
  • Loading branch information
aporat committed May 11, 2016
2 parents 5b89a43 + de12b63 commit 925c608
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Create service account [Service Account flow](https://developers.google.com/iden
use ReceiptValidator\GooglePlay\ServiceAccountValidator as PlayValidator;
$validator = new PlayValidator([
'client_email' => '[email protected]',
'p12_key_path' => file_get_contents('MyProject.p12'),
'p12_key_path' => 'MyProject.p12',
]);

try {
Expand Down
2 changes: 1 addition & 1 deletion src/GooglePlay/ServiceAccountValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ protected function initClient($options = [])
$credentials = new \Google_Auth_AssertionCredentials(
$options['client_email'],
[\Google_Service_AndroidPublisher::ANDROIDPUBLISHER],
$options['p12_key_path']
file_get_contents($options['p12_key_path'])
);
$this->_client = new \Google_Client();
$this->_client->setAssertionCredentials($credentials);
Expand Down

0 comments on commit 925c608

Please sign in to comment.