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); }
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); }