當前位置: 首頁>>代碼示例>>C#>>正文


C# NVPUtil.ParseNVPString方法代碼示例

本文整理匯總了C#中PayPal.Util.NVPUtil.ParseNVPString方法的典型用法代碼示例。如果您正苦於以下問題:C# NVPUtil.ParseNVPString方法的具體用法?C# NVPUtil.ParseNVPString怎麽用?C# NVPUtil.ParseNVPString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PayPal.Util.NVPUtil的用法示例。


在下文中一共展示了NVPUtil.ParseNVPString方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Application_PreSendRequestContent

        private void Application_PreSendRequestContent(Object source,
          EventArgs e)
        {
            HttpApplication application = (HttpApplication)source;
            HttpContext context = application.Context;

            if (context.Items.Contains("responseObject")) {
                Object responseObj = context.Items["responseObject"];
                string originalResponse = (string) context.Items["responsePayload"];
                Dictionary<string, string> constructedMap = ReflectionUtil.decodeResponseObject(responseObj, string.Empty);
                NVPUtil nvpUtil = new NVPUtil();
                Dictionary<string, string> originalMap = nvpUtil.ParseNVPString(originalResponse);

                if (!originalMap.Equals(constructedMap)) {
                    foreach (string key in originalMap.Keys) {
                        if (!originalMap[key].Equals(constructedMap[key])) {
                            context.Response.Write(
                                "Original: " + key + " => " + originalMap[key]
                                    + " : " + "Constructed: " + key + " => "
                                    + constructedMap[key] + "<br/>");
                        }
                    }
                }
            }
        }
開發者ID:JCVega,項目名稱:permissions-sdk-dotnet,代碼行數:25,代碼來源:DeserializationTestFilter.cs

示例2: CancelInvoice

        /// <summary>
        /// 
        /// </summary>
        ///<param name="cancelInvoiceRequest"></param>
        ///<param name="apiUserName">API Username that you want to authenticate this call against. This username and the corresponding 3-token/certificate credentials must be available in Web.Config/App.Config</param>
        public CancelInvoiceResponse CancelInvoice(CancelInvoiceRequest cancelInvoiceRequest, string apiUserName)
        {
            IAPICallPreHandler apiCallPreHandler = new PlatformAPICallPreHandler(this.config, cancelInvoiceRequest.ToNVPString(string.Empty), ServiceName, "CancelInvoice", apiUserName, getAccessToken(), getAccessTokenSecret());
               	 	((PlatformAPICallPreHandler) apiCallPreHandler).SDKName = SDKName;
            ((PlatformAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion;
            ((PlatformAPICallPreHandler) apiCallPreHandler).PortName = "Invoice";

            NVPUtil util = new NVPUtil();
            return CancelInvoiceResponse.CreateInstance(util.ParseNVPString(Call(apiCallPreHandler)), string.Empty, -1);
        }
開發者ID:paypal,項目名稱:invoice-sdk-dotnet,代碼行數:15,代碼來源:InvoiceService.cs

示例3: AddBankAccount

        /// <summary>
        /// Countries Supported:
        /// AU - Australia
        /// CA - Canada
        /// FR -
        /// France
        /// DE - Germany
        /// IL - Israel
        /// IT - Italy
        /// NL - Netherlands
        /// UK - United
        /// Kingdom
        /// US - United States
        /// 
        /// 
        /// 
        /// 
        /// 
        /// </summary>
        ///<param name="addBankAccountRequest"></param>
        ///<param name="apiUserName">API Username that you want to authenticate this call against. This username and the corresponding 3-token/certificate credentials must be available in Web.Config/App.Config</param>
        public AddBankAccountResponse AddBankAccount(AddBankAccountRequest addBankAccountRequest, string apiUserName)
        {
            IAPICallPreHandler apiCallPreHandler = new PlatformAPICallPreHandler(this.config, addBankAccountRequest.ToNVPString(string.Empty), ServiceName, "AddBankAccount", apiUserName, getAccessToken(), getAccessTokenSecret());
               	 	((PlatformAPICallPreHandler) apiCallPreHandler).SDKName = SDKName;
            ((PlatformAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion;
            ((PlatformAPICallPreHandler) apiCallPreHandler).PortName = "AdaptiveAccounts";

            NVPUtil util = new NVPUtil();
            return AddBankAccountResponse.CreateInstance(util.ParseNVPString(Call(apiCallPreHandler)), string.Empty, -1);
        }
開發者ID:kleopatra999,項目名稱:adaptiveaccounts-sdk-dotnet,代碼行數:31,代碼來源:AdaptiveAccountsService.cs

示例4: CancelPermissions

 /**
   *AUTO_GENERATED
  	  */
 public CancelPermissionsResponse CancelPermissions(CancelPermissionsRequest cancelPermissionsRequest, ICredential credential)
 {
     IAPICallPreHandler apiCallPreHandler = null;
     apiCallPreHandler = new PlatformAPICallPreHandler(cancelPermissionsRequest.ToNVPString(string.Empty), ServiceName, "CancelPermissions", credential);
        	 	((PlatformAPICallPreHandler) apiCallPreHandler).SDKName = SDKName;
     ((PlatformAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion;
     string response = Call(apiCallPreHandler);
     NVPUtil util = new NVPUtil();
     return CancelPermissionsResponse.CreateInstance(util.ParseNVPString(response), string.Empty, -1);
 }
開發者ID:israelgoldstein,項目名稱:invoice-sdk-dotnet,代碼行數:13,代碼來源:PermissionsService.cs

示例5: CancelPreapproval

	 	/// <summary>
		/// 
	 	/// </summary>
		///<param name="cancelPreapprovalRequest"></param>
		///<param name="credential">An explicit ICredential object that you want to authenticate this call against</param> 
	 	public CancelPreapprovalResponse CancelPreapproval(CancelPreapprovalRequest cancelPreapprovalRequest, ICredential credential)
	 	{	 			 		
			IAPICallPreHandler apiCallPreHandler = new PlatformAPICallPreHandler(this.config, cancelPreapprovalRequest.ToNVPString(string.Empty), ServiceName, "CancelPreapproval", credential);
	   	 	((PlatformAPICallPreHandler) apiCallPreHandler).SDKName = SDKName;
			((PlatformAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion;
			((PlatformAPICallPreHandler) apiCallPreHandler).PortName = "AdaptivePayments";

			NVPUtil util = new NVPUtil();
			return CancelPreapprovalResponse.CreateInstance(util.ParseNVPString(Call(apiCallPreHandler)), string.Empty, -1);
			
	 	}
開發者ID:webhost,項目名稱:adaptivepayments-sdk-dotnet,代碼行數:16,代碼來源:AdaptivePaymentsService.cs

示例6: ConvertCurrency

 /**
   *AUTO_GENERATED
  	  */
 public ConvertCurrencyResponse ConvertCurrency(ConvertCurrencyRequest convertCurrencyRequest, string apiUserName)
 {
     string response = Call("ConvertCurrency", convertCurrencyRequest.ToNVPString(""), apiUserName);
     NVPUtil util = new NVPUtil();
     return ConvertCurrencyResponse.CreateInstance(util.ParseNVPString(response), "", -1);
 }
開發者ID:tgtamil,項目名稱:SDKs,代碼行數:9,代碼來源:AdaptivePaymentsService.cs

示例7: ExecutePayment

 /**
   *AUTO_GENERATED
  	  */
 public ExecutePaymentResponse ExecutePayment(ExecutePaymentRequest executePaymentRequest, string apiUserName)
 {
     string response = Call("ExecutePayment", executePaymentRequest.ToNVPString(""), apiUserName);
     NVPUtil util = new NVPUtil();
     return ExecutePaymentResponse.CreateInstance(util.ParseNVPString(response), "", -1);
 }
開發者ID:tgtamil,項目名稱:SDKs,代碼行數:9,代碼來源:AdaptivePaymentsService.cs

示例8: SetPaymentOptions

 /**
   *AUTO_GENERATED
  	  */
 public SetPaymentOptionsResponse SetPaymentOptions(SetPaymentOptionsRequest setPaymentOptionsRequest, string apiUserName)
 {
     string response = Call("SetPaymentOptions", setPaymentOptionsRequest.ToNVPString(""), apiUserName);
     NVPUtil util = new NVPUtil();
     return SetPaymentOptionsResponse.CreateInstance(util.ParseNVPString(response), "", -1);
 }
開發者ID:tgtamil,項目名稱:SDKs,代碼行數:9,代碼來源:AdaptivePaymentsService.cs

示例9: ConfirmPreapproval

 /**
   *AUTO_GENERATED
  	  */
 public ConfirmPreapprovalResponse ConfirmPreapproval(ConfirmPreapprovalRequest confirmPreapprovalRequest, string apiUserName)
 {
     string response = Call("ConfirmPreapproval", confirmPreapprovalRequest.ToNVPString(""), apiUserName);
     NVPUtil util = new NVPUtil();
     return ConfirmPreapprovalResponse.CreateInstance(util.ParseNVPString(response), "", -1);
 }
開發者ID:tgtamil,項目名稱:SDKs,代碼行數:9,代碼來源:AdaptivePaymentsService.cs

示例10: GetAccessToken

 /**
   *AUTO_GENERATED
  	  */
 public GetAccessTokenResponse GetAccessToken(GetAccessTokenRequest getAccessTokenRequest, string apiUserName)
 {
     IAPICallPreHandler apiCallPreHandler = null;
     apiCallPreHandler = new PlatformAPICallPreHandler(getAccessTokenRequest.ToNVPString(string.Empty), ServiceName, "GetAccessToken", apiUserName, getAccessToken(), getAccessTokenSecret());
        	 	((PlatformAPICallPreHandler) apiCallPreHandler).SDKName = SDKName;
     ((PlatformAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion;
     string response = Call(apiCallPreHandler);
     NVPUtil util = new NVPUtil();
     return GetAccessTokenResponse.CreateInstance(util.ParseNVPString(response), string.Empty, -1);
 }
開發者ID:israelgoldstein,項目名稱:invoice-sdk-dotnet,代碼行數:13,代碼來源:PermissionsService.cs

示例11: SetFundingSourceConfirmed

        /// <summary>
        /// To be updated.
        /// Countries Supported:
        /// AU - Australia
        /// AT - Austria
        /// BE - Belgium
        /// BR - Brazil
        /// CA - Canada
        /// CZ - Czech Republic
        /// FR
        /// - France
        /// DE - Germany
        /// GR - Greece
        /// HK - Hong Kong
        /// IE - Ireland
        /// IT - Italy
        /// JP - Japan
        /// LU - Luxembourg
        /// MX - Mexico
        /// NL - Netherlands
        /// NZ - New Zealand
        /// (Aotearoa)
        /// PL - Poland
        /// PT - Portugal
        /// RU - Russian Federation
        /// SG -
        /// Singapore
        /// ZA - South Africa
        /// ES - Spain
        /// CH - Switzerland
        /// UK - United
        /// Kingdom
        /// US - United States
        /// 
        /// 
        /// 
        /// 
        /// 
        /// </summary>
        ///<param name="setFundingSourceConfirmedRequest"></param>
        ///<param name="credential">An explicit ICredential object that you want to authenticate this call against</param> 
        public SetFundingSourceConfirmedResponse SetFundingSourceConfirmed(SetFundingSourceConfirmedRequest setFundingSourceConfirmedRequest, ICredential credential)
        {
            IAPICallPreHandler apiCallPreHandler = new PlatformAPICallPreHandler(this.config, setFundingSourceConfirmedRequest.ToNVPString(string.Empty), ServiceName, "SetFundingSourceConfirmed", credential);
               	 	((PlatformAPICallPreHandler) apiCallPreHandler).SDKName = SDKName;
            ((PlatformAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion;
            ((PlatformAPICallPreHandler) apiCallPreHandler).PortName = "AdaptiveAccounts";

            NVPUtil util = new NVPUtil();
            return SetFundingSourceConfirmedResponse.CreateInstance(util.ParseNVPString(Call(apiCallPreHandler)), string.Empty, -1);
        }
開發者ID:kleopatra999,項目名稱:adaptiveaccounts-sdk-dotnet,代碼行數:51,代碼來源:AdaptiveAccountsService.cs

示例12: GetPrePaymentDisclosure

	 	/// <summary>
		/// 
	 	/// </summary>
		///<param name="getPrePaymentDisclosureRequest"></param>
		///<param name="credential">An explicit ICredential object that you want to authenticate this call against</param> 
	 	public GetPrePaymentDisclosureResponse GetPrePaymentDisclosure(GetPrePaymentDisclosureRequest getPrePaymentDisclosureRequest, ICredential credential)
	 	{	 			 		
			IAPICallPreHandler apiCallPreHandler = new PlatformAPICallPreHandler(this.config, getPrePaymentDisclosureRequest.ToNVPString(string.Empty), ServiceName, "GetPrePaymentDisclosure", credential);
	   	 	((PlatformAPICallPreHandler) apiCallPreHandler).SDKName = SDKName;
			((PlatformAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion;
			((PlatformAPICallPreHandler) apiCallPreHandler).PortName = "AdaptivePayments";

			NVPUtil util = new NVPUtil();
			return GetPrePaymentDisclosureResponse.CreateInstance(util.ParseNVPString(Call(apiCallPreHandler)), string.Empty, -1);
			
	 	}
開發者ID:webhost,項目名稱:adaptivepayments-sdk-dotnet,代碼行數:16,代碼來源:AdaptivePaymentsService.cs

示例13: SendInvoice

 /**
   *AUTO_GENERATED
  	  */
 public SendInvoiceResponse SendInvoice(SendInvoiceRequest sendInvoiceRequest, string apiUserName)
 {
     string response = Call("SendInvoice", sendInvoiceRequest.ToNVPString(""), apiUserName);
     NVPUtil util = new NVPUtil();
     return SendInvoiceResponse.CreateInstance(util.ParseNVPString(response), "", -1);
 }
開發者ID:tgtamil,項目名稱:SDKs,代碼行數:9,代碼來源:InvoiceService.cs

示例14: GetBasicPersonalData

 /**
   *AUTO_GENERATED
  	  */
 public GetBasicPersonalDataResponse GetBasicPersonalData(GetBasicPersonalDataRequest getBasicPersonalDataRequest, string apiUserName)
 {
     string response = Call("GetBasicPersonalData", getBasicPersonalDataRequest.ToNVPString(""), apiUserName);
     NVPUtil util = new NVPUtil();
     return GetBasicPersonalDataResponse.CreateInstance(util.ParseNVPString(response), "", -1);
 }
開發者ID:tgtamil,項目名稱:SDKs,代碼行數:9,代碼來源:PermissionsService.cs

示例15: GetAvailableShippingAddresses

 /**
   *AUTO_GENERATED
  	  */
 public GetAvailableShippingAddressesResponse GetAvailableShippingAddresses(GetAvailableShippingAddressesRequest getAvailableShippingAddressesRequest, string apiUserName)
 {
     string response = Call("GetAvailableShippingAddresses", getAvailableShippingAddressesRequest.ToNVPString(""), apiUserName);
     NVPUtil util = new NVPUtil();
     return GetAvailableShippingAddressesResponse.CreateInstance(util.ParseNVPString(response), "", -1);
 }
開發者ID:tgtamil,項目名稱:SDKs,代碼行數:9,代碼來源:AdaptivePaymentsService.cs


注:本文中的PayPal.Util.NVPUtil.ParseNVPString方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。