protected void Submit_Click(object sender, EventArgs e) { // Create request object GetBoardingDetailsRequestType request = new GetBoardingDetailsRequestType(); request.Token = token.Value; // Invoke the API GetBoardingDetailsReq wrapper = new GetBoardingDetailsReq(); wrapper.GetBoardingDetailsRequest = 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(); PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService(configurationMap); GetBoardingDetailsResponseType enterBoardingResponse = service.GetBoardingDetails(wrapper); // Check for API return status processResponse(service, enterBoardingResponse); }
/// <summary> /// /// </summary> ///<param name="getBoardingDetailsReq"></param> ///<param name="credential">An explicit ICredential object that you want to authenticate this call against</param> public GetBoardingDetailsResponseType GetBoardingDetails(GetBoardingDetailsReq getBoardingDetailsReq, ICredential credential) { setStandardParams(getBoardingDetailsReq.GetBoardingDetailsRequest); DefaultSOAPAPICallHandler defaultHandler = new DefaultSOAPAPICallHandler(this.config, getBoardingDetailsReq.ToXMLString(null, "GetBoardingDetailsReq"), 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 GetBoardingDetailsResponseType( xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='GetBoardingDetailsResponse']") ); }
/// <summary> /// /// </summary> ///<param name="getBoardingDetailsReq"></param> public GetBoardingDetailsResponseType GetBoardingDetails(GetBoardingDetailsReq getBoardingDetailsReq) { return GetBoardingDetails(getBoardingDetailsReq,(string) null); }
/** *AUTO_GENERATED */ public GetBoardingDetailsResponseType GetBoardingDetails(GetBoardingDetailsReq getBoardingDetailsReq, string apiUserName) { IAPICallPreHandler apiCallPreHandler = null; string portName = "PayPalAPI"; setStandardParams(getBoardingDetailsReq.GetBoardingDetailsRequest); DefaultSOAPAPICallHandler defaultHandler = new DefaultSOAPAPICallHandler(getBoardingDetailsReq.ToXMLString(null, "GetBoardingDetailsReq"), null, null); apiCallPreHandler = new MerchantAPICallPreHandler(defaultHandler, apiUserName, getAccessToken(), getAccessTokenSecret()); ((MerchantAPICallPreHandler) apiCallPreHandler).SDKName = SDKName; ((MerchantAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion; ((MerchantAPICallPreHandler) apiCallPreHandler).PortName = portName; string response = Call(apiCallPreHandler); XmlDocument xmlDocument = new XmlDocument(); xmlDocument.LoadXml(response); XmlNode xmlNode = xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='GetBoardingDetailsResponse']"); return new GetBoardingDetailsResponseType(xmlNode); }
/** *AUTO_GENERATED */ public GetBoardingDetailsResponseType GetBoardingDetails(GetBoardingDetailsReq getBoardingDetailsReq, string apiUserName) { setStandardParams(getBoardingDetailsReq.GetBoardingDetailsRequest); string response = Call("GetBoardingDetails", getBoardingDetailsReq.ToXMLString(), apiUserName); XmlDocument xmlDocument = new XmlDocument(); xmlDocument.LoadXml(response); XmlNode xmlNode = xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='GetBoardingDetailsResponse']"); return new GetBoardingDetailsResponseType(xmlNode); }
public GetBoardingDetailsResponseType GetBoardingDetails(GetBoardingDetailsReq GetBoardingDetailsReq) { return GetBoardingDetails(GetBoardingDetailsReq, null); }
/** * */ public GetBoardingDetailsResponseType GetBoardingDetails(GetBoardingDetailsReq GetBoardingDetailsReq, string apiUsername) { setStandardParams(GetBoardingDetailsReq.GetBoardingDetailsRequest); string resp = call("GetBoardingDetails", GetBoardingDetailsReq.toXMLString(), apiUsername); return new GetBoardingDetailsResponseType(resp); }