How to do PayPal IPN in asp.net MVC

waterondeck
Contributor
Contributor

A 14 year old web forms app utilizes two aspx pages to connect with PayPal to do subscription payments. Lets call these pages (1) PayPalSUbscription.aspx and (2) PayPalIPN.aspx.

 

Page one gathers some details about the subscription from a web form, generates a link to redirect (https://www.paypal.com/cgi-bin/webscr?cmd=_ext-enter&redirect_cmd=_xclick-subscriptions&business=sel............)

 

Page two reads the response from PayPal upon successful payment, verifies, postback to PayPal and updates data on web site.

 

I need to do this in MVC, the PayPal documentation does not give precise details on how to achieve this. The https://github.com/paypal/PayPal-NET-SDK samples don't have anything similar. Several days of searching did not yield any workable examples.

 

Am I missing something? Has PayPal tech changed so much that what worked 14 years is no longer valid?

The PayPal API https://developer.paypal.com/docs/api/subscriptions/v1/ does not have samples for MVC that I could find.

 

Is there a simple to follow working sample to handle PayPal subscriptions similar to what was done in the Web Forms app referenced above?

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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