diff --git a/src/Beanstream/api/Profiles.php b/src/Beanstream/api/Profiles.php index 0853777..ffff375 100644 --- a/src/Beanstream/api/Profiles.php +++ b/src/Beanstream/api/Profiles.php @@ -155,11 +155,7 @@ public function addCard($profile_id, $data) //process as is $result = $this->_connector->processTransaction('POST', $endpoint, $data); - /* - * XXX it would be more appropriate to return newly added card_id, - * but API does not return it in result - */ - return TRUE; + return $result['code']; } /** @@ -202,4 +198,4 @@ public function deleteCard($profile_id, $card_id) { return TRUE; } -} \ No newline at end of file +}