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


C# Util.NVPUtil類代碼示例

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


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

示例1: ConvertCurrency

        /**
         *
         */
        public ConvertCurrencyResponse ConvertCurrency(ConvertCurrencyRequest ConvertCurrencyRequest, string apiUsername)
        {
            string resp = call("ConvertCurrency", ConvertCurrencyRequest.toNVPString(""), apiUsername);

            NVPUtil util = new NVPUtil();
            return new ConvertCurrencyResponse(util.parseNVPString(resp), "");
        }
開發者ID:bpossolo,項目名稱:SDKs,代碼行數:10,代碼來源:AdaptivePaymentsService.cs

示例2: CreateInvoice

        /**
         *
         */
        public CreateInvoiceResponse CreateInvoice(CreateInvoiceRequest CreateInvoiceRequest, string apiUsername)
        {
            string resp = call("CreateInvoice", CreateInvoiceRequest.toNVPString(""), apiUsername);

            NVPUtil util = new NVPUtil();
            return new CreateInvoiceResponse(util.parseNVPString(resp), "");
        }
開發者ID:bpossolo,項目名稱:SDKs,代碼行數:10,代碼來源:InvoiceService.cs

示例3: AddBankAccount

        /**
         *		 * Countries Supported:
         * AU - Australia
         * CA - Canada
         * FR - France
         * DE - Germany
         * IL - Israel
         * IT - Italy
         * NL - Netherlands
         * UK - United Kingdom
         * US - United States

         */
        public AddBankAccountResponse AddBankAccount(AddBankAccountRequest AddBankAccountRequest, string apiUsername)
        {
            string resp = call("AddBankAccount", AddBankAccountRequest.toNVPString(""), apiUsername);

            NVPUtil util = new NVPUtil();
            return new AddBankAccountResponse(util.parseNVPString(resp), "");
        }
開發者ID:abawany,項目名稱:SDKs,代碼行數:20,代碼來源:AdaptiveAccountsService.cs

示例4: CancelPermissions

        /**
         *
         */
        public CancelPermissionsResponse CancelPermissions(CancelPermissionsRequest CancelPermissionsRequest, string apiUsername)
        {
            string resp = call("CancelPermissions", CancelPermissionsRequest.toNVPString(""), apiUsername);

            NVPUtil util = new NVPUtil();
            return new CancelPermissionsResponse(util.parseNVPString(resp), "");
        }
開發者ID:bpossolo,項目名稱:SDKs,代碼行數:10,代碼來源:PermissionsService.cs

示例5: ConfirmPreapproval

        /**
         *
         */
        public ConfirmPreapprovalResponse ConfirmPreapproval(ConfirmPreapprovalRequest ConfirmPreapprovalRequest, string apiUsername)
        {
            string resp = call("ConfirmPreapproval", ConfirmPreapprovalRequest.toNVPString(""), apiUsername);

            NVPUtil util = new NVPUtil();
            return new ConfirmPreapprovalResponse(util.parseNVPString(resp), "");
        }
開發者ID:bpossolo,項目名稱:SDKs,代碼行數:10,代碼來源:AdaptivePaymentsService.cs

示例6: 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

示例7: ExecutePayment

        /**
         *
         */
        public ExecutePaymentResponse ExecutePayment(ExecutePaymentRequest ExecutePaymentRequest, string apiUsername)
        {
            string resp = call("ExecutePayment", ExecutePaymentRequest.toNVPString(""), apiUsername);

            NVPUtil util = new NVPUtil();
            return new ExecutePaymentResponse(util.parseNVPString(resp), "");
        }
開發者ID:abawany,項目名稱:SDKs,代碼行數:10,代碼來源:AdaptivePaymentsService.cs

示例8: GetAdvancedPersonalData

        /**
         *
         */
        public GetAdvancedPersonalDataResponse GetAdvancedPersonalData(GetAdvancedPersonalDataRequest GetAdvancedPersonalDataRequest, string apiUsername)
        {
            string resp = call("GetAdvancedPersonalData", GetAdvancedPersonalDataRequest.toNVPString(""), apiUsername);

            NVPUtil util = new NVPUtil();
            return new GetAdvancedPersonalDataResponse(util.parseNVPString(resp), "");
        }
開發者ID:bpossolo,項目名稱:SDKs,代碼行數:10,代碼來源:PermissionsService.cs

示例9: GetAccessToken

        /**
         *
         */
        public GetAccessTokenResponse GetAccessToken(GetAccessTokenRequest GetAccessTokenRequest, string apiUsername)
        {
            string resp = call("GetAccessToken", GetAccessTokenRequest.toNVPString(""), apiUsername);

            NVPUtil util = new NVPUtil();
            return new GetAccessTokenResponse(util.parseNVPString(resp), "");
        }
開發者ID:bpossolo,項目名稱:SDKs,代碼行數:10,代碼來源:PermissionsService.cs

示例10: GetPermissions

        /**
         *
         */
        public GetPermissionsResponse GetPermissions(GetPermissionsRequest GetPermissionsRequest, string apiUsername)
        {
            BasePayPalService service = new BasePayPalService(serviceName);
            string resp = service.call("GetPermissions", GetPermissionsRequest.toNVPString(""), apiUsername);

            NVPUtil util = new NVPUtil();
            return new GetPermissionsResponse(util.parseNVPString(resp), "");
        }
開發者ID:abawany,項目名稱:SDKs,代碼行數:11,代碼來源:PermissionsService.cs

示例11: 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

示例12: 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

示例13: 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

示例14: 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

示例15: 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


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