Skip to content

Commit 6219066

Browse files
author
Prosper Otemuyiwa
authored
Merge pull request #13 from ammezie/master
Update createCustomer to return the newly created customer
2 parents d222619 + ff4a185 commit 6219066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Paystack.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ public function createCustomer()
369369
];
370370

371371
$this->setRequestOptions();
372-
$this->setHttpResponse('/customer', 'POST', $data);
372+
return $this->setHttpResponse('/customer', 'POST', $data)->getResponse();
373373
}
374374

375375
/**

0 commit comments

Comments
 (0)