public function storeCardFromToken($Context, $id, $token)
	{
		$id = str_replace(array('{', '}', '-'), '', $id);

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

		$payload = array(
			'value' => $token
			);

		$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 storeCardFromToken($Context, $id, $token)
	{
		$id = str_replace(array('{', '}', '-'), '', $id);

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

		$payload = array(
			'value' => $token
			);

		$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 storeCardFromToken ( $ Context , $ id , $ token ) { $ id = str_replace ( array ( '{' , '}' , '-' ) , '' , $ id ) ; $ url = str_replace ( '<id>' , $ id , QuickBooks_Payments :: URL_CARD . '/createFromToken' ) ; $ payload = array ( 'value' => $ token ) ; $ 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 from a token via the QuickBooks Payments API

@return QuickBooks_Payments_CreditCard
Store a card from a token via the QuickBooks Payments API