public function getCardProvider($param)
    {
        $this->flushState();
        $isValidProvider = CheckoutApi_Client_Validation_GW3::isProvider($param);
        $uri = $this->getUriProvider().'/cards';
        $hasError = false;
        if(!$isValidProvider)
        {
            $hasError = true;
            $this->throwException('Please provide a valid provider id',array('param'=>$param));
        }

        if(!$hasError){
            $uri = "{$uri}/{$param['providerId']}";
        }

        return $this->request( $uri ,$param,!$hasError);
    }
public function getCardProvider($param)
    {
        $this->flushState();
        $isValidProvider = CheckoutApi_Client_Validation_GW3::isProvider($param);
        $uri = $this->getUriProvider().'/cards';
        $hasError = false;
        if(!$isValidProvider)
        {
            $hasError = true;
            $this->throwException('Please provide a valid provider id',array('param'=>$param));
        }

        if(!$hasError){
            $uri = "{$uri}/{$param['providerId']}";
        }

        return $this->request( $uri ,$param,!$hasError);
    }
public function getCardProvider ( $ param ) { $ this -> flushState ( ) ; $ isValidProvider = CheckoutApi_Client_Validation_GW3 :: isProvider ( $ param ) ; $ uri = $ this -> getUriProvider ( ) . '/cards' ; $ hasError = false ; if ( ! $ isValidProvider ) { $ hasError = true ; $ this -> throwException ( 'Please provide a valid provider id' , array ( 'param' => $ param ) ) ; } if ( ! $ hasError ) { $ uri = "{$uri}/{$param['providerId']}" ; } return $ this -> request ( $ uri , $ param , ! $ hasError ) ; }
Get a list of card provider
@param array $param payload param for retriving a list of card by providers
@return CheckoutApi_Lib_RespondObj
Simple usage:
$param['providerId'] = $providerId ;
$cardProvidersObj = $Api->getCardProvider($param);
Get a list of card provider