/** * */ public BMManageButtonStatusResponseType BMManageButtonStatus(BMManageButtonStatusReq BMManageButtonStatusReq, string apiUsername) { setStandardParams(BMManageButtonStatusReq.BMManageButtonStatusRequest); string resp = call("BMManageButtonStatus", BMManageButtonStatusReq.toXMLString(), apiUsername); return(new BMManageButtonStatusResponseType(resp)); }
protected void Submit_Click(object sender, EventArgs e) { // Create request object BMManageButtonStatusRequestType request = new BMManageButtonStatusRequestType(); // (Required) The ID of the hosted button whose status you want to change. request.HostedButtonID = hostedID.Value; //(Required) The new status of the button. It is one of the following values: //DELETE - the button is deleted from PayPal request.ButtonStatus = (ButtonStatusType) Enum.Parse(typeof(ButtonStatusType), buttonStatus.SelectedValue); // Invoke the API BMManageButtonStatusReq wrapper = new BMManageButtonStatusReq(); wrapper.BMManageButtonStatusRequest = 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(); // Creating service wrapper object to make an API call by loading configuration map. PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService(configurationMap); BMManageButtonStatusResponseType response = service.BMManageButtonStatus(wrapper); // Check for API return status setKeyResponseObjects(service, response); }
/** * AUTO_GENERATED */ public BMManageButtonStatusResponseType BMManageButtonStatus(BMManageButtonStatusReq bMManageButtonStatusReq, string apiUserName) { setStandardParams(bMManageButtonStatusReq.BMManageButtonStatusRequest); string response = Call("BMManageButtonStatus", bMManageButtonStatusReq.ToXMLString(), apiUserName); XmlDocument xmlDocument = new XmlDocument(); xmlDocument.LoadXml(response); XmlNode xmlNode = xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='BMManageButtonStatusResponse']"); return(new BMManageButtonStatusResponseType(xmlNode)); }
/// <summary> /// /// </summary> ///<param name="bMManageButtonStatusReq"></param> ///<param name="credential">An explicit ICredential object that you want to authenticate this call against</param> public BMManageButtonStatusResponseType BMManageButtonStatus(BMManageButtonStatusReq bMManageButtonStatusReq, ICredential credential) { setStandardParams(bMManageButtonStatusReq.BMManageButtonStatusRequest); DefaultSOAPAPICallHandler defaultHandler = new DefaultSOAPAPICallHandler(this.config, bMManageButtonStatusReq.ToXMLString(null, "BMManageButtonStatusReq"), null, null); IAPICallPreHandler apiCallPreHandler = new MerchantAPICallPreHandler(this.config, defaultHandler, credential); ((MerchantAPICallPreHandler)apiCallPreHandler).SDKName = SDKName; ((MerchantAPICallPreHandler)apiCallPreHandler).SDKVersion = SDKVersion; ((MerchantAPICallPreHandler)apiCallPreHandler).PortName = "PayPalAPI"; XmlDocument xmlDocument = new XmlDocument(); xmlDocument.LoadXml(Call(apiCallPreHandler)); return(new BMManageButtonStatusResponseType( xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='BMManageButtonStatusResponse']") )); }
protected void Submit_Click(object sender, EventArgs e) { // Create request object BMManageButtonStatusRequestType request = new BMManageButtonStatusRequestType(); request.HostedButtonID = hostedID.Value; request.ButtonStatus = (ButtonStatusType) Enum.Parse(typeof(ButtonStatusType), buttonStatus.SelectedValue); // Invoke the API BMManageButtonStatusReq wrapper = new BMManageButtonStatusReq(); wrapper.BMManageButtonStatusRequest = request; PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService(); BMManageButtonStatusResponseType response = service.BMManageButtonStatus(wrapper); // Check for API return status setKeyResponseObjects(service, response); }
protected void Submit_Click(object sender, EventArgs e) { // Create request object BMManageButtonStatusRequestType request = new BMManageButtonStatusRequestType(); // (Required) The ID of the hosted button whose status you want to change. request.HostedButtonID = hostedID.Value; //(Required) The new status of the button. It is one of the following values: //DELETE - the button is deleted from PayPal request.ButtonStatus = (ButtonStatusType) Enum.Parse(typeof(ButtonStatusType), buttonStatus.SelectedValue); // Invoke the API BMManageButtonStatusReq wrapper = new BMManageButtonStatusReq(); wrapper.BMManageButtonStatusRequest = request; PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService(); BMManageButtonStatusResponseType response = service.BMManageButtonStatus(wrapper); // Check for API return status setKeyResponseObjects(service, response); }
/// <summary> /// /// </summary> ///<param name="bMManageButtonStatusReq"></param> public BMManageButtonStatusResponseType BMManageButtonStatus(BMManageButtonStatusReq bMManageButtonStatusReq) { return(BMManageButtonStatus(bMManageButtonStatusReq, (string)null)); }
public BMManageButtonStatusResponseType BMManageButtonStatus(BMManageButtonStatusReq BMManageButtonStatusReq) { return(BMManageButtonStatus(BMManageButtonStatusReq, null)); }