コード例 #1
0
        protected void Submit_Click(object sender, EventArgs e)
        {
            // Create request object
            UpdateRecurringPaymentsProfileRequestType request = new UpdateRecurringPaymentsProfileRequestType();

            populateRequestObject(request);

            // Invoke the API
            UpdateRecurringPaymentsProfileReq wrapper = new UpdateRecurringPaymentsProfileReq();

            wrapper.UpdateRecurringPaymentsProfileRequest = request;

            // Configuration map containing signature credentials and other required configuration.
            // For a full list of configuration parameters refer in wiki page
            // [https://github.com/paypal/sdk-core-dotnet/wiki/SDK-Configuration-Parameters]
            Dictionary <string, string> configurationMap = Configuration.GetAcctAndConfig();

            // Create the PayPalAPIInterfaceServiceService service object to make the API call
            PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService(configurationMap);
            // # API call
            // Invoke the UpdateRecurringPaymentsProfile method in service wrapper object
            UpdateRecurringPaymentsProfileResponseType updateRPProfileResponse = service.UpdateRecurringPaymentsProfile(wrapper);

            // Check for API return status
            setKeyResponseObjects(service, updateRPProfileResponse);
        }
コード例 #2
0
        protected void Submit_Click(object sender, EventArgs e)
        {
            // Create request object
            UpdateRecurringPaymentsProfileRequestType request = new UpdateRecurringPaymentsProfileRequestType();

            populateRequestObject(request);

            // Invoke the API
            UpdateRecurringPaymentsProfileReq wrapper = new UpdateRecurringPaymentsProfileReq();

            wrapper.UpdateRecurringPaymentsProfileRequest = request;
            PayPalAPIInterfaceServiceService           service = new PayPalAPIInterfaceServiceService();
            UpdateRecurringPaymentsProfileResponseType updateRPProfileResponse = service.UpdateRecurringPaymentsProfile(wrapper);

            // Check for API return status
            setKeyResponseObjects(service, updateRPProfileResponse);
        }
コード例 #3
0
ファイル: Reference.cs プロジェクト: juliakolesen/voobrazi.by
 /// <remarks/>
 public void UpdateRecurringPaymentsProfileAsync(UpdateRecurringPaymentsProfileReq UpdateRecurringPaymentsProfileReq, object userState) {
     if ((this.UpdateRecurringPaymentsProfileOperationCompleted == null)) {
         this.UpdateRecurringPaymentsProfileOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateRecurringPaymentsProfileOperationCompleted);
     }
     this.InvokeAsync("UpdateRecurringPaymentsProfile", new object[] {
                 UpdateRecurringPaymentsProfileReq}, this.UpdateRecurringPaymentsProfileOperationCompleted, userState);
 }
コード例 #4
0
ファイル: Reference.cs プロジェクト: juliakolesen/voobrazi.by
 /// <remarks/>
 public void UpdateRecurringPaymentsProfileAsync(UpdateRecurringPaymentsProfileReq UpdateRecurringPaymentsProfileReq) {
     this.UpdateRecurringPaymentsProfileAsync(UpdateRecurringPaymentsProfileReq, null);
 }
コード例 #5
0
 public UpdateRecurringPaymentsProfileResponseType UpdateRecurringPaymentsProfile(UpdateRecurringPaymentsProfileReq UpdateRecurringPaymentsProfileReq)
 {
     return(UpdateRecurringPaymentsProfile(UpdateRecurringPaymentsProfileReq, null));
 }
コード例 #6
0
        /**
         *
         */
        public UpdateRecurringPaymentsProfileResponseType UpdateRecurringPaymentsProfile(UpdateRecurringPaymentsProfileReq UpdateRecurringPaymentsProfileReq, string apiUsername)
        {
            setStandardParams(UpdateRecurringPaymentsProfileReq.UpdateRecurringPaymentsProfileRequest);
            string resp = call("UpdateRecurringPaymentsProfile", UpdateRecurringPaymentsProfileReq.toXMLString(), apiUsername);

            return(new UpdateRecurringPaymentsProfileResponseType(resp));
        }
コード例 #7
0
        /**
         * AUTO_GENERATED
         */
        public UpdateRecurringPaymentsProfileResponseType UpdateRecurringPaymentsProfile(UpdateRecurringPaymentsProfileReq updateRecurringPaymentsProfileReq, string apiUserName)
        {
            setStandardParams(updateRecurringPaymentsProfileReq.UpdateRecurringPaymentsProfileRequest);
            string      response    = Call("UpdateRecurringPaymentsProfile", updateRecurringPaymentsProfileReq.ToXMLString(), apiUserName);
            XmlDocument xmlDocument = new XmlDocument();

            xmlDocument.LoadXml(response);
            XmlNode xmlNode = xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='UpdateRecurringPaymentsProfileResponse']");

            return(new UpdateRecurringPaymentsProfileResponseType(xmlNode));
        }