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

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

		if ($Object instanceof QuickBooks_Payments_CreditCard)
		{
			$payload = $Object->toArray();
		}
		else
		{
			$this->_setError();
			return false;
		}

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

		$data = json_decode($resp, true);

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

		return QuickBooks_Payments_CreditCard::fromArray($data);
	}
public function storeCard($Context, $id, $Object)
	{
		$id = str_replace(array('{', '}', '-'), '', $id);

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

		if ($Object instanceof QuickBooks_Payments_CreditCard)
		{
			$payload = $Object->toArray();
		}
		else
		{
			$this->_setError();
			return false;
		}

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

		$data = json_decode($resp, true);

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

		return QuickBooks_Payments_CreditCard::fromArray($data);
	}
Store a card via the QuickBooks Payments API

@return QuickBooks_Payments_CreditCard