diff --git a/src/GooglePlay/Validator.php b/src/GooglePlay/Validator.php index 8831172..b7eb512 100644 --- a/src/GooglePlay/Validator.php +++ b/src/GooglePlay/Validator.php @@ -104,7 +104,7 @@ public function setValidationModePurchase($validationModePurchase) */ public function setValidationSubscriptionV2(bool $validationSubscriptionV2) { - $this->validationModePurchase = $validationSubscriptionV2; + $this->validationSubscriptionV2 = $validationSubscriptionV2; return $this; } @@ -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();