-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to validate a Google Play Subscription it return an error: subscriptionInvalidArgument #167
Comments
Usually it means that you're trying to validation non-subscription purchase. Could you share more details about the product? Maybe a screenshot from Google Play Console of the page with that product? |
The product that i'm trying to validate is a subscription, i'm sure, i have also some single product purchases in the same application so i know that the productId in the response is a valid subscription. |
Any idea? Still having the same error trying to validate a test subscription. |
By default acknowledge functionality does not used in validation process. |
I was able to validate the subscription by creating a function that uses v2 subscriptions service. There is the code:
|
Validating a subscription in test with validateSubscription() return an error "subscriptionInvalidArgument" with message "Your request is invalid for this subscription purchase".
Scope: https://www.googleapis.com/auth/androidpublisher
$response = $validator->setPackageName($packageName) ->setValidationModePurchase(false) ->setProductId($productId) ->setPurchaseToken($purchaseToken) ->validateSubscription();
The verification of a single purchase (validatePurchase) of the same application is ok
The text was updated successfully, but these errors were encountered: