예제 #1
0
        // See ITransactionRegistrar for parameter descriptions
        public GetExpressCheckoutDetailsResponse SendGetExpressCheckoutDetails(string token)
        {
            GetExpressCheckoutDetailsRequest request = new GetExpressCheckoutDetailsRequest(token);

            string postData = serializer.Serialize(request);
            Logging.LogLongMessage("PayPal Send Request", "Serlialized Request to PayPal API: " + postData);

            string response = requestSender.SendRequest(Configuration.Current.PayPalAPIUrl, postData);
            string decodedResponse = System.Web.HttpUtility.UrlDecode(response, System.Text.Encoding.Default);
            Logging.LogLongMessage("PayPal Response Recieved", "Decoded Respose from PayPal API: " + decodedResponse);

            return deserializer.Deserialize<GetExpressCheckoutDetailsResponse>(decodedResponse);
        }
        // See ITransactionRegistrar for parameter descriptions
        public GetExpressCheckoutDetailsResponse SendGetExpressCheckoutDetails(string token)
        {
            GetExpressCheckoutDetailsRequest request = new GetExpressCheckoutDetailsRequest(token);

            string postData = serializer.Serialize(request);

            Logging.LogLongMessage("PayPal Send Request", "Serlialized Request to PayPal API: " + postData);

            string response        = requestSender.SendRequest(Configuration.Current.PayPalAPIUrl, postData);
            string decodedResponse = System.Web.HttpUtility.UrlDecode(response, System.Text.Encoding.Default);

            Logging.LogLongMessage("PayPal Response Recieved", "Decoded Respose from PayPal API: " + decodedResponse);

            return(deserializer.Deserialize <GetExpressCheckoutDetailsResponse>(decodedResponse));
        }