public function storeHostedData($ccNumber, $ccValid, $hostedDataId)
    {
        $service = $this->getService();

        $validMonth  = substr($ccValid, 0, 2);
        $validYear   = substr($ccValid, 3, 4);
        $ccData      = new Model\CreditCardData($ccNumber, $validMonth, $validYear);
        $ccItem      = new Model\CreditCardItem($ccData, $hostedDataId);
        $storeAction = new Request\Action\StoreHostedData($service, $ccItem);

        return $storeAction->store();
    }
public function storeHostedData($ccNumber, $ccValid, $hostedDataId)
    {
        $service = $this->getService();

        $validMonth  = substr($ccValid, 0, 2);
        $validYear   = substr($ccValid, 3, 4);
        $ccData      = new Model\CreditCardData($ccNumber, $validMonth, $validYear);
        $ccItem      = new Model\CreditCardItem($ccData, $hostedDataId);
        $storeAction = new Request\Action\StoreHostedData($service, $ccItem);

        return $storeAction->store();
    }
public function storeHostedData ( $ ccNumber , $ ccValid , $ hostedDataId ) { $ service = $ this -> getService ( ) ; $ validMonth = substr ( $ ccValid , 0 , 2 ) ; $ validYear = substr ( $ ccValid , 3 , 4 ) ; $ ccData = new Model \ CreditCardData ( $ ccNumber , $ validMonth , $ validYear ) ; $ ccItem = new Model \ CreditCardItem ( $ ccData , $ hostedDataId ) ; $ storeAction = new Request \ Action \ StoreHostedData ( $ service , $ ccItem ) ; return $ storeAction -> store ( ) ; }
Store credit card information externally

@param string $ccNumber
@param string $ccValid
@param string $hostedDataId

@return Response\Action\Confirm|Response\Error
@throws \Exception
Store credit card information externally