cancel
Showing results for 
Search instead for 
Did you mean: 

Paypal _notify_url not working in asp.net mvc and paypal api

Options
imdhiren
Contributor
Posted on

Hello,

 

I used paypal api version 1.9.1 in asp.net mvc.I passed _notify_url parameter in transaction class of paypal.

 

 transactionList.Add(new Transaction()
            {
                description = "Buy from Ezywarap",
                invoice_number = Guid.NewGuid().ToString(), //Generate an Invoice No
                amount = amount,
                item_list = new ItemList()
                {
                    items = itemList.items,
                    shipping_address = shippingInfo
                },
                notify_url = notigyUrl 
            });

when i redirect to paypay sandbox for payment.This _notify_url not redirect back to web site for IPN.

notify_url= "http://www.website.com/Payment/Receive";

I used back for that code:-

 [HttpPost]
        public HttpStatusCodeResult Receive()
        {
            //Store the IPN received from PayPal
            LogRequest(Request);

            //Fire and forget verification task
            Task.Run(() => VerifyTask(Request));

            //Reply back a 200 code
            return new HttpStatusCodeResult(HttpStatusCode.OK);
        }

But not redirect back for IPN.

 

Help.

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.