Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i facing some problem in Paypal integration,
i find error of this block mainly last line of code on debug time .

C#
ReceiverList sl = new ReceiverList();
           sl.receiver.Add(rec);
           PayRequest req = new PayRequest(new RequestEnvelope("en_US"), "PAY",
                              cancelURl, "USD",
                              sl, returnURL);
           req.reverseAllParallelPaymentsOnError = true;
           AdaptivePaymentsService service = new AdaptivePaymentsService();
 
           PayResponse resp = null;
 
           resp = service.Pay(req);


Quote:
Service.Pay(req); is throw error: Invalid HTTP response The underlying connection was closed: An unexpected error occurred on a send


What I have tried:

Update API Setting on Paypal Account etc and Update latest reference by nuget package .
Posted
Updated 31-May-16 5:14am

1 solution

You will need to contact Paypal support to find out why their response is not coming as you would expect.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900