Skip to content

Commit

Permalink
Merge pull request #168 from sica07/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Stafox authored Nov 10, 2022
2 parents 820aaf1 + 4134ca0 commit 142793d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/GooglePlay/PurchaseResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

/**
Expand Down

0 comments on commit 142793d

Please sign in to comment.