From 5a89b99c214122444249054a8d69650e089998fa Mon Sep 17 00:00:00 2001 From: Alexei Yanochkin Date: Fri, 21 Apr 2023 09:09:02 +0200 Subject: [PATCH] Add support purchases.subscriptionsv2 for Google API --- src/GooglePlay/Validator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();