public  function getLocalPaymentProvider($param)
    {
        $this->flushState();
        $uri = $this->getUriProvider();
        $hasError = false;
        $isTokenValid = CheckoutApi_Client_Validation_GW3::isSessionToken($param);
        $isValidProvider = CheckoutApi_Client_Validation_GW3::isProvider($param);
        $param['method'] = CheckoutApi_Client_Adapter_Constant::API_GET;
        $delimiter = '/localpayments/';

        if(!$isTokenValid) {
            $hasError = true;
            $this->throwException('Please provide a valid session token',array('param'=>$param));
        }

        if(!$isValidProvider)
        {
            $hasError = true;
            $this->throwException('Please provide a valid provider id',array('param'=>$param));
        }

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

        return $this->request( $uri ,$param,!$hasError);
    }
public  function getLocalPaymentProvider($param)
    {
        $this->flushState();
        $uri = $this->getUriProvider();
        $hasError = false;
        $isTokenValid = CheckoutApi_Client_Validation_GW3::isSessionToken($param);
        $isValidProvider = CheckoutApi_Client_Validation_GW3::isProvider($param);
        $param['method'] = CheckoutApi_Client_Adapter_Constant::API_GET;
        $delimiter = '/localpayments/';

        if(!$isTokenValid) {
            $hasError = true;
            $this->throwException('Please provide a valid session token',array('param'=>$param));
        }

        if(!$isValidProvider)
        {
            $hasError = true;
            $this->throwException('Please provide a valid provider id',array('param'=>$param));
        }

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

        return $this->request( $uri ,$param,!$hasError);
    }
public function getLocalPaymentProvider ( $ param ) { $ this -> flushState ( ) ; $ uri = $ this -> getUriProvider ( ) ; $ hasError = false ; $ isTokenValid = CheckoutApi_Client_Validation_GW3 :: isSessionToken ( $ param ) ; $ isValidProvider = CheckoutApi_Client_Validation_GW3 :: isProvider ( $ param ) ; $ param [ 'method' ] = CheckoutApi_Client_Adapter_Constant :: API_GET ; $ delimiter = '/localpayments/' ; if ( ! $ isTokenValid ) { $ hasError = true ; $ this -> throwException ( 'Please provide a valid session token' , array ( 'param' => $ param ) ) ; } if ( ! $ isValidProvider ) { $ hasError = true ; $ this -> throwException ( 'Please provide a valid provider id' , array ( 'param' => $ param ) ) ; } if ( ! $ hasError ) { $ uri = "{$uri}{$delimiter}{$param['providerId']}?token={$param['token']}" ; } return $ this -> request ( $ uri , $ param , ! $ hasError ) ; }
Get LocalPayment Provider
@param array $param payload param for getting a local payment provider dettail
@return CheckoutApi_Lib_RespondObj
@throws Exception
Simple usage:
$param['token'] = $sessionToken ;
$param['providerId'] = $providerId ;
$localPaymentObj = $Api->getLocalPaymentProvider($param);
Get LocalPayment Provider