Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/Beanstream/api/Profiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,26 @@ public function getCards($profile_id) {
return $result;
}

/**
* getCard() function - Retrieve a particular card in a profile
* @link http://developer.beanstream.com/documentation/tokenize-payments/retrieve-cards-profile/
*
* @param string $profile_id Profile Id
* @param string $card_id Card Id
* @return array Cards data
*/
public function getCard($profile_id, $card_id) {

//get this profile's cards endpoint
$endpoint = $this->_endpoint->getCardURI($profile_id);

//process as is
$result = $this->_connector->processTransaction('GET', $endpoint, NULL);

//return cards
return $result;
}

/**
* addCard() function - Add a card to a profile
* @link http://developer.beanstream.com/documentation/tokenize-payments/add-card-profile/
Expand Down