Digital Point Forums
Money Order

Go Back   Digital Point Forums > Design & Development > Programming > PHP
Google Analytics
Log In to view
your analytics

Reply
 
Thread Tools
  #1  
Old May 8th 2008, 8:41 pm
TBBucs TBBucs is offline
Peon
 
Join Date: Apr 2008
Posts: 24
TBBucs is on a distinguished road
How could I accomplish this (payment system for website)?

Here's the premise of my latest project. A client creates an account (that part is done), then clicks on the "Post a listing" link, where they are directed to a page with a form to fill out (that part is done).

Now for the part I don't know how to do:

The user clicks a button to buy a credit, which redirects them to a PayPal page where they complete the transaction. One purchase like this gives the user one credit (the number of credits they have would be stored in the database). They can use these credits to post listings on the site.

I know how to check for credits and either allow or deny them a listing, but I'm not sure how to go from the PayPal page to giving them a credit. Any ideas how I'd accomplish this?
Reply With Quote
  #2  
Old May 8th 2008, 9:50 pm
Rob Whisonant Rob Whisonant is offline
Grunt
 
Join Date: Jan 2008
Posts: 99
Rob Whisonant is on a distinguished road
You could do that with the PayPal IPN. Have you checked it out yet?

Re's
Rob Whisonant
Reply With Quote
  #3  
Old May 9th 2008, 7:55 am
jestep's Avatar
jestep jestep is offline
of the Nightfall
 
Join Date: Dec 2004
Location: Austin
Posts: 2,398
jestep is a name known to alljestep is a name known to alljestep is a name known to alljestep is a name known to alljestep is a name known to alljestep is a name known to all
Try the paypal IPN as suggested or the express checkout method. I'm personally a big fan of Express Checkout as the user finishes the transaction on your website rather than on paypal's.

You should be able to find examples and help here: https://developer.paypal.com/
Reply With Quote
  #4  
Old May 12th 2008, 4:23 am
mahendras's Avatar
mahendras mahendras is offline
Hand of A'dal
 
Join Date: Apr 2008
Location: Ahmedabad India
Posts: 435
mahendras is on a distinguished road
I believe you have credits associated with the amount they pay like $5=1credit, if that is correct then I think you should use a logical method to accomplish your task.
You must have specified two pages to paypal for successful transaction and unsuccessful transaction.
Once the paypal completes a transaction successfully, it will redirect the user to the page of your website where you have originally indicated at the time of settings. On this page (on your website) you need to run a trigger to credit the credits to the database for that user ( here I am assuming that session of user still exists).
I think this is fair because you only want to credit when the payment is made successfully.
No need to do settings on paypal because you should have records of all transactions in your own database and paypal should be referred to see the payment deposit and withdrawal.
I hope it helps.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How could I accomplish this (payment system for website)? TBBucs HTML & Website Design 5 May 9th 2008 1:27 pm
Self Payment System ottodo Payment Processing 1 Jan 10th 2008 9:08 pm
Can DP has its own payment system..?? sami1255 Suggestions & Feedback 5 Aug 5th 2007 9:56 am
New Payment System on the Way oziii Payments 5 Nov 29th 2004 8:33 pm


All times are GMT -8. The time now is 12:30 am.