public function registerCard(string $customerId, string $urlReturn = null)
    {
        $this->flow->getLogger()->debug("Registering Card for $customerId, returns to $urlReturn");

        return BasicResponse::make(
            $this->flow->send('post',
                $this->endpoint . '/register',
                [
                    'customerId' => $customerId,
                    'url_return' => $urlReturn ?? $this->flow->getReturnUrls('card.url_return'),
                ]
            )
        );
    }
public function registerCard(string $customerId, string $urlReturn = null)
    {
        $this->flow->getLogger()->debug("Registering Card for $customerId, returns to $urlReturn");

        return BasicResponse::make(
            $this->flow->send('post',
                $this->endpoint . '/register',
                [
                    'customerId' => $customerId,
                    'url_return' => $urlReturn ?? $this->flow->getReturnUrls('card.url_return'),
                ]
            )
        );
    }
public function registerCard ( string $ customerId , string $ urlReturn = null ) { $ this -> flow -> getLogger ( ) -> debug ( "Registering Card for $customerId, returns to $urlReturn" ) ; return BasicResponse :: make ( $ this -> flow -> send ( 'post' , $ this -> endpoint . '/register' , [ 'customerId' => $ customerId , 'url_return' => $ urlReturn ?? $ this -> flow -> getReturnUrls ( 'card.url_return' ) , ] ) ) ; }
Registers a Credit Card for the Customer

@param string $customerId
@param string $urlReturn
@return bool|BasicResponse
@throws \Exception
Registers a Credit Card for the Customer