Click here to Skip to main content
15,889,343 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);


error is :
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 ..
Posted
Updated 28-May-16 7:43am
v2
Comments
PraveenDora 1-Jun-16 19:57pm    
I am not an expert with paypal , it appears issus with certificates .. are you sending certificates info in request object ?

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