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

Doesn't work with Google Play subscriptions #10

Closed chekalsky closed 9 years ago

chekalsky commented 9 years ago

Because of different endpoint (purchases_subscriptions instead of purchases_products)

chekalsky commented 9 years ago

OK, works fine.

So it can be used like this:

$validator->setPackageName('app.example.com')
    ->setProductId('test')
    ->setPurchaseType(ReceiptValidator\GooglePlay\Validator::TYPE_SUBSCRIPTION)
    ...