aporat / store-receipt-validator

PHP receipt validator for Apple iTunes, Google Play and Amazon App Store
Apache License 2.0
633 stars 153 forks source link

Problem with 1.4 and ServiceAccountValidator #28

Closed HermanBilous closed 8 years ago

HermanBilous commented 8 years ago

When using new ServiceAccountValidator class $options['p12_key_path'] should contain contents of a key file instead of it's path. Example examples/test_play_service_account.php wouldn't work because $p12_key_path holds a path to a key file.

Either key name 'p12_key_path' should be changed to 'p12_key' or line 12 @ ServiceAccountValidator.php should be replaced with file_get_contents($options['p12_key_path']).

HermanBilous commented 8 years ago

I've added a pull request with a fix to this issue, and addded file_get_contents to a class with respective changes to readme

HermanBilous commented 8 years ago

Resolved