Results 1 to 6 of 6

Thread: pay pal and web project

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    pay pal and web project

    Hi I am wondering if anyone has ever used pay pal solution integrated with asp.net web project? Currently, I signed up for pay pal service that allows me to have the code to place on my website. It's free, but will be charged when there's a payment made through the customers. What I want to accomplish is able to once the client pays the money, allow them access in my sql server database.

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: pay pal and web project

    Hey,

    What exactly do you mean, provide them access to your SQL Server? This doesn't seem to have anything to do with your original question regarding paypal?!?

    If I have understood you correctly, you would need to provide them with a login with access to your SQL Server, once they have provided you with a payment.

    Gary

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    Re: pay pal and web project

    No... not that way. I meant like the user makes purchase on the website, which is handled by the pay pal, but I want system to automatically give them instance access once the payment is approved and I don't have to go to the db to give them access..

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: pay pal and web project

    Hey,

    The way I understand it is this....

    You collect the information regarding the purchase, you submit this information to pay pal, and they collect the users payment information, pay pal completes the transaction, and returns control back to your site, at which point, based on a successful transaction, you can do other work.

    In your case, the other work will be providing access to your SQL Server. I personally have never programmatically added users to a SQL Server instance, I have always preferred to control this through an IDE like SQL Server Management Studio, but that is not to say that it can't be done. You would just need to execute the necessary SQL to add permissions for the user that you want.

    You can find an example of this here:

    http://www.visualbasic.happycodings....uff/code1.html

    Hope that helps!

    Gary

  5. #5
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: pay pal and web project

    I should point out that the above link is using an ADODB connection, which is considered outdated, in preference to an ADO.Net connection to the database, however, the technique is the same.

    Gary

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: pay pal and web project

    To do it in .NET, you'd use the SMO classes. Some sample code here (read the entire thread for some corrections. You need to create a login first, make a user, assign the user to a login, then create)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width