Skip to content

Commit

Permalink
Merge pull request #172 from yankers/master
Browse files Browse the repository at this point in the history
Fix validationSubscriptionV2
  • Loading branch information
Stafox authored Apr 21, 2023
2 parents f93f0e9 + 6e38b3d commit 0791b76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GooglePlay/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function setValidationModePurchase($validationModePurchase)
*/
public function setValidationSubscriptionV2(bool $validationSubscriptionV2)
{
$this->validationModePurchase = $validationSubscriptionV2;
$this->validationSubscriptionV2 = $validationSubscriptionV2;

return $this;
}
Expand All @@ -116,7 +116,7 @@ public function validate()
{
if ($this->validationModePurchase) {
$result = $this->validatePurchase();
} elseif ($this->validateSubscriptionV2()) {
} elseif ($this->validationSubscriptionV2) {
$result = $this->validateSubscriptionV2();
} else {
$result = $this->validateSubscription();
Expand Down

0 comments on commit 0791b76

Please sign in to comment.