Exemple #1
0
        /**
         *
         */
        public EnterBoardingResponseType EnterBoarding(EnterBoardingReq EnterBoardingReq, string apiUsername)
        {
            setStandardParams(EnterBoardingReq.EnterBoardingRequest);
            string resp = call("EnterBoarding", EnterBoardingReq.toXMLString(), apiUsername);

            return(new EnterBoardingResponseType(resp));
        }
        protected void Submit_Click(object sender, EventArgs e)
        {
            // Create request object
            EnterBoardingRequestType        request         = new EnterBoardingRequestType();
            EnterBoardingRequestDetailsType boardingDetails = new EnterBoardingRequestDetailsType();

            boardingDetails.ProductList         = productList.Value;
            boardingDetails.ProgramCode         = programCode.Value;
            boardingDetails.ImageUrl            = imageUrl.Value;
            request.EnterBoardingRequestDetails = boardingDetails;

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

            wrapper.EnterBoardingRequest = 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);
            EnterBoardingResponseType        enterBoardingResponse = service.EnterBoarding(wrapper);

            // Check for API return status
            processResponse(service, enterBoardingResponse);
        }
        /**
         * AUTO_GENERATED
         */
        public EnterBoardingResponseType EnterBoarding(EnterBoardingReq enterBoardingReq, string apiUserName)
        {
            setStandardParams(enterBoardingReq.EnterBoardingRequest);
            string      response    = Call("EnterBoarding", enterBoardingReq.ToXMLString(), apiUserName);
            XmlDocument xmlDocument = new XmlDocument();

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

            return(new EnterBoardingResponseType(xmlNode));
        }
Exemple #4
0
        protected void Submit_Click(object sender, EventArgs e)
        {
            // Create request object
            EnterBoardingRequestType        request         = new EnterBoardingRequestType();
            EnterBoardingRequestDetailsType boardingDetails = new EnterBoardingRequestDetailsType();

            boardingDetails.ProductList         = productList.Value;
            boardingDetails.ProgramCode         = programCode.Value;
            boardingDetails.ImageUrl            = imageUrl.Value;
            request.EnterBoardingRequestDetails = boardingDetails;

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

            wrapper.EnterBoardingRequest = request;
            PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService();
            EnterBoardingResponseType        enterBoardingResponse = service.EnterBoarding(wrapper);

            // Check for API return status
            processResponse(service, enterBoardingResponse);
        }
 /// <remarks/>
 public void EnterBoardingAsync(EnterBoardingReq EnterBoardingReq, object userState) {
     if ((this.EnterBoardingOperationCompleted == null)) {
         this.EnterBoardingOperationCompleted = new System.Threading.SendOrPostCallback(this.OnEnterBoardingOperationCompleted);
     }
     this.InvokeAsync("EnterBoarding", new object[] {
                 EnterBoardingReq}, this.EnterBoardingOperationCompleted, userState);
 }
 /// <remarks/>
 public void EnterBoardingAsync(EnterBoardingReq EnterBoardingReq) {
     this.EnterBoardingAsync(EnterBoardingReq, null);
 }
Exemple #7
0
 public EnterBoardingResponseType EnterBoarding(EnterBoardingReq EnterBoardingReq)
 {
     return(EnterBoarding(EnterBoardingReq, null));
 }