I am doing a custom ecommerce for a small umbraco site (v7). I have the passing to paypal working but now need to write my IPN (Instant Payment Notification)
PayPal's code samples are on Github so i have that covered.
What is the best way for me to do this in Umbraco? It wont need to show a page and i provide a URL for Paypal who tells me when a payment has been made (which then i pretty much just updated the database to mark it as paid).
WHich type of controller is best for me to create in my Umbraco project? Ive used surface controllers to handle the addition to basket etc but as i dont need to do anything after handling the response (not like how i currently use a surface controller to redirect to the current umbraco page) i am not sure.
I've done something like this in the past with a simple ASPX page. If you're not needing to get "into Umbraco" then don't.
If you do, the do a simple handler and use Controller as a base class and handle your routing with an ApplicationEventHandler module or use the standard UmbracoApiController which will do routing for you.
PayPal IPN - SurfaceController or APIController
Hi
I am doing a custom ecommerce for a small umbraco site (v7). I have the passing to paypal working but now need to write my IPN (Instant Payment Notification)
PayPal's code samples are on Github so i have that covered.
What is the best way for me to do this in Umbraco? It wont need to show a page and i provide a URL for Paypal who tells me when a payment has been made (which then i pretty much just updated the database to mark it as paid).
WHich type of controller is best for me to create in my Umbraco project? Ive used surface controllers to handle the addition to basket etc but as i dont need to do anything after handling the response (not like how i currently use a surface controller to redirect to the current umbraco page) i am not sure.
ANyone done anything similar?
Code sample
Forgot to say earlier but this is the code sample. I basically want to recreate this in Umbraco using one of the custom controllers, please help :)
Hi iand1234,
I've done something like this in the past with a simple ASPX page. If you're not needing to get "into Umbraco" then don't.
If you do, the do a simple handler and use Controller as a base class and handle your routing with an ApplicationEventHandler module or use the standard UmbracoApiController which will do routing for you.
John
thanks for the replies chaps
Ben Norman - thanks for the code example, how would you then access this?
Guessing at /ContactFOrmFOrBasicEcommerceSurface/Index (or even without the index)?
The url for the controller is /umbraco/Surface/ContactFormForBasicECommerceSurface/HandleContactSubmit
is working on a reply...