QuickBooks/Payments.php
public function getCards($Context, $id)
	{
		$id = str_replace(array('{', '}', '-'), '', $id);

		$url = str_replace('<id>', $id, QuickBooks_Payments::URL_CARD);

		$resp = $this->_http($Context, $url, null);

		$data = json_decode($resp, true);

		if ($this->_handleError($data))
		{
			return false;
		}

		$cards = array();

		foreach ($data as $card)
		{
			$cards[] = QuickBooks_Payments_CreditCard::fromArray($card);
		}

		return $cards;
	}
public function getCards($Context, $id)
	{
		$id = str_replace(array('{', '}', '-'), '', $id);

		$url = str_replace('<id>', $id, QuickBooks_Payments::URL_CARD);

		$resp = $this->_http($Context, $url, null);

		$data = json_decode($resp, true);

		if ($this->_handleError($data))
		{
			return false;
		}

		$cards = array();

		foreach ($data as $card)
		{
			$cards[] = QuickBooks_Payments_CreditCard::fromArray($card);
		}

		return $cards;
	}
Get all cards associated with a customer via the
QuickBooks Payments API

@return array of QuickBooks_Payments_CreditCard