Skip to content

Commit 447ec40

Browse files
authored
Reverted resource comparison to "api/v2/create"
1 parent f875390 commit 447ec40

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_wallet") || (substr($resource, 0, 8) === "merchant")) {
94+
if (($resource == "api/v2/create") || (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)