Hi there, I need to call a web service when Paypal posts back a confirmed payment to my ablecommerce site.
i.e when ProcessPayPal.ashx is called.
Can anyone tell me which file I need to look in?
How to capture paypal postback event.
Re: How to capture paypal postback event.
ProcessPayPal.ashx is not a real file. Calls to ProcessPayPal.ashx are handled by a class in the CommerceBuilder assembly (see web.config for the name of the class).
If I were faced with your situation, the first thing I would try is to create by own handler that derives from the CommerceBuilder handler and then override the ProcessRequest method to call the web service and then call base.ProcessRequest.
If I were faced with your situation, the first thing I would try is to create by own handler that derives from the CommerceBuilder handler and then override the ProcessRequest method to call the web service and then call base.ProcessRequest.
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Re: How to capture paypal postback event.
Yes, inherit from CommerceBuilder.Payments.Providers.PayPal.IpnProcessor and override ProcessRequest. In the ProcessRequest method, do your custom calls, then call base.ProcessRequest. Then modify your web.config so that requests to ProcessPayPal.ashx are passed to your custom handler instead of ours.
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.