/** *AUTO_GENERATED */ public BMGetButtonDetailsResponseType BMGetButtonDetails(BMGetButtonDetailsReq BMGetButtonDetailsReq, string apiUsername) { setStandardParams(BMGetButtonDetailsReq.BMGetButtonDetailsRequest); string resp = call("BMGetButtonDetails", BMGetButtonDetailsReq.toXMLString(), apiUsername); return new BMGetButtonDetailsResponseType(resp); }
protected void Submit_Click(object sender, EventArgs e) { // Create request object BMGetButtonDetailsRequestType request = new BMGetButtonDetailsRequestType(); // (Required) The ID of the hosted button whose details you want to obtain. request.HostedButtonID = hostedID.Value; // Invoke the API BMGetButtonDetailsReq wrapper = new BMGetButtonDetailsReq(); wrapper.BMGetButtonDetailsRequest = 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); BMGetButtonDetailsResponseType response = service.BMGetButtonDetails(wrapper); // Check for API return status setKeyResponseObjects(service, response); }
/** *AUTO_GENERATED */ public BMGetButtonDetailsResponseType BMGetButtonDetails(BMGetButtonDetailsReq bMGetButtonDetailsReq, string apiUserName) { setStandardParams(bMGetButtonDetailsReq.BMGetButtonDetailsRequest); string response = Call("BMGetButtonDetails", bMGetButtonDetailsReq.ToXMLString(), apiUserName); XmlDocument xmlDocument = new XmlDocument(); xmlDocument.LoadXml(response); XmlNode xmlNode = xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='BMGetButtonDetailsResponse']"); return new BMGetButtonDetailsResponseType(xmlNode); }
protected void Submit_Click(object sender, EventArgs e) { // Create request object BMGetButtonDetailsRequestType request = new BMGetButtonDetailsRequestType(); request.HostedButtonID = hostedID.Value; // Invoke the API BMGetButtonDetailsReq wrapper = new BMGetButtonDetailsReq(); wrapper.BMGetButtonDetailsRequest = request; PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService(); BMGetButtonDetailsResponseType response = service.BMGetButtonDetails(wrapper); // Check for API return status setKeyResponseObjects(service, response); }
/// <summary> /// /// </summary> ///<param name="bMGetButtonDetailsReq"></param> ///<param name="credential">An explicit ICredential object that you want to authenticate this call against</param> public BMGetButtonDetailsResponseType BMGetButtonDetails(BMGetButtonDetailsReq bMGetButtonDetailsReq, ICredential credential) { setStandardParams(bMGetButtonDetailsReq.BMGetButtonDetailsRequest); DefaultSOAPAPICallHandler defaultHandler = new DefaultSOAPAPICallHandler(this.config, bMGetButtonDetailsReq.ToXMLString(null, "BMGetButtonDetailsReq"), 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 BMGetButtonDetailsResponseType( xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='BMGetButtonDetailsResponse']") ); }
/// <summary> /// /// </summary> ///<param name="bMGetButtonDetailsReq"></param> public BMGetButtonDetailsResponseType BMGetButtonDetails(BMGetButtonDetailsReq bMGetButtonDetailsReq) { return BMGetButtonDetails(bMGetButtonDetailsReq,(string) null); }
/** *AUTO_GENERATED */ public BMGetButtonDetailsResponseType BMGetButtonDetails(BMGetButtonDetailsReq BMGetButtonDetailsReq) { return BMGetButtonDetails(BMGetButtonDetailsReq, null); }