views:

150

answers:

1

I am working on e-commerce application using asp.net MVC with C#.

I need to authorize the users who signs up with the application with the credit card.

1). When the user sign up, i need to get the credit card details and authorize the card by either Paypal or Authorize.net without saving the credit card details except subscription id or authorization code.

2). And whenever the user buys a product, i need to charge the card with the details given during registration.

Is there any sample code for Paypal and Authorize.net. please suggest

+1  A: 

Both the Paypal and Authorize.net sites have plenty of coding examples, including at least one C#/ASP.NET example. Visit PayPal or Authorize.net and go to either's developer center. (Both links in the prior sentence point to the indicated provider's developer center.)

Where I work, we've created many e-commerce websites for clients, and Authorize.net is our de facto standard for credit card processing. One solid advantage to using them is that you never have to store -- or even know -- a customer's credit card information firsthand. This is a very good thing as it helps protect you and your client from potential legal exposure due to data compromise. (Caveat: I am not a lawyer and this is not legal advice.)

Bob Kaufman
Prasad