public function getExpressPaymentMethod($token, &$country = null)
    {
        $gateway = new Merchant_Billing_PaypalExpress($this->_gateway_config);
        $response = $gateway->get_details_for($token, '');

        $method = new ComSubscriptionsDomainPaymentMethodToken('Paypal', array(
                                                                  'payer_id' => $response->payer_id(),
                                                                  'token' => $token, ));
        $country = $response->COUNTRYCODE;

        return $method;
    }
public function getExpressPaymentMethod($token, &$country = null)
    {
        $gateway = new Merchant_Billing_PaypalExpress($this->_gateway_config);
        $response = $gateway->get_details_for($token, '');

        $method = new ComSubscriptionsDomainPaymentMethodToken('Paypal', array(
                                                                  'payer_id' => $response->payer_id(),
                                                                  'token' => $token, ));
        $country = $response->COUNTRYCODE;

        return $method;
    }
public function getExpressPaymentMethod ( $ token , & $ country = null ) { $ gateway = new Merchant_Billing_PaypalExpress ( $ this -> _gateway_config ) ; $ response = $ gateway -> get_details_for ( $ token , '' ) ; $ method = new ComSubscriptionsDomainPaymentMethodToken ( 'Paypal' , array ( 'payer_id' => $ response -> payer_id ( ) , 'token' => $ token , ) ) ; $ country = $ response -> COUNTRYCODE ; return $ method ; }
Return a payment method.

@param string $token   The authorization token
@param string $country If the country is known then it will set the country code

@return ComSubscriptionsDomainPaymentMethodToken
Return a payment method .