Skip to content

Commit 5612442

Browse files
authored
Unable to decode JSON Response #32
Service Url set to blockchain.info instead of local service url issue fix
1 parent 590c83b commit 5612442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Blockchain.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function setServiceUrl($service_url) {
9191
public function post($resource, $data=null) {
9292
$url = Blockchain::URL;
9393

94-
if (($resource == "api/v2/create") || (substr($resource, 0, 8) === "merchant")) {
94+
if (($resource == "api/v2/create_wallet") || (substr($resource, 0, 8) === "merchant")) {
9595
if ($this->service_url == null) {
9696
throw new ApiError("When calling a merchant endpoint or creating a wallet, service_url must be set");
9797
}

0 commit comments

Comments
 (0)