Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8671443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:57:07+00:00 2026-06-12T18:57:07+00:00

After getting the token and payerID from SetExpressCheckOut now I’m looking to actually get

  • 0

After getting the token and payerID from SetExpressCheckOut now I’m looking to actually get the money from the user.

Using the code generated by the paypal function wizard, I’m calling the ConfirmPayment function.

The problem is that the function is called successfully and processes the payment from the user, but then I received a timeout error. So I get their money, and the user gets a time out page. Not the best way to keep customers.

The operation has timed out

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Net.WebException: The operation has timed out

Source Error: 

Line 313:
Line 314:        //Retrieve the Response returned from the NVP API call to PayPal
**Line 315:        HttpWebResponse objResponse = (HttpWebResponse)objRequest.GetResponse();**
Line 316:        string result;
Line 317:        using (StreamReader sr = new StreamReader(objResponse.GetResponseStream()))

I get a timeout on line 315 which originates from the paypal function’s HTTPCall function.

public string HttpCall(string NvpRequest) //CallNvpServer
{
string url = pendpointurl;

    //To Add the credentials from the profile
    string strPost = NvpRequest + "&" + buildCredentialsNVPString();
    strPost = strPost + "&BUTTONSOURCE=" + HttpUtility.UrlEncode( BNCode );

    HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create(url);
    objRequest.Timeout = Timeout;
    objRequest.Method = "POST";
    objRequest.ContentLength = strPost.Length;
    //Retrieve the Response returned from the NVP API call to PayPal
    **HttpWebResponse objResponse = (HttpWebResponse)objRequest.GetResponse();** (Line 315)
    string result;
    using (StreamReader sr = new StreamReader(objResponse.GetResponseStream()))
    {
        result = sr.ReadToEnd();
    }

    return result;
}

I feel this maybe something with Paypal’s server but either ways, it doesn’t work and will piss off users if it goes to live. Do you guys have any idea why it would time out all of a sudden? The same HTTPCall is used in SetExpressCheckOut before and works fine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T18:57:10+00:00Added an answer on June 12, 2026 at 6:57 pm

    It seems like there is a variable in the paypalfunctions.cs that dictates the timeout for the page. It was set to 5000 and I simply upped it to 50000 since page loads were taking longer than 5 seconds and were timing out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After getting user authenticated with oauth2, i got the token. so how that get
After getting a profile hash from the LinkedIn Ruby Gem, but I'm looking for
After getting a struct from C# to C++ using C++/CLI: public value struct SampleObject
I want to search a user from LDAP and after getting the user I
My problem occur after getting the session token from Google SECURELY Here's what I
I am requesting user detail in facebook after getting token . I got the
I want to get the profile info after getting the token <?php session_start ();
In the below code how to remove the hyperlink after getting the innerHTML :
After running Code Analysis in VS2010 beta (FxCop for previous versions) I'm getting the
I was able to get oauth token from FourSquare by following a tutorial given

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.