diff --git a/src/GooglePlay/PurchaseResponse.php b/src/GooglePlay/PurchaseResponse.php index ab6b113..9876698 100644 --- a/src/GooglePlay/PurchaseResponse.php +++ b/src/GooglePlay/PurchaseResponse.php @@ -19,7 +19,9 @@ class PurchaseResponse extends AbstractResponse public function __construct($response) { parent::__construct($response); - $this->developerPayload = json_decode($this->response->developerPayload, true); + if (isset($this->response->developerPayload)) { + $this->developerPayload = json_decode($this->response->developerPayload, true); + } } /**