Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to build a web service similar to kickstarter that allows users to pledge money to an idea, tho I'm unsure how I can implement this kind of payment system. If the the idea receives a specified amount of money, then the donors are charged. If it doesn't, the donors are not charged. I've done some preliminary research and have found Amazon Payments to be a possible solution provider for this, but I'm still unsure where to start with this and was hoping someone could point me in some right directions for how I can go about implementing this kind of payment structure in my web site.

I should also note that this is primarily a prototype I'm building, so it's ok if the solution is limited to U.S. customers only. Also, I plan to build the site using Ruby on Rails.

Thanks so much for your wisdom!

share|improve this question

closed as too broad by MetaFight, Scant Roger, Ixrec, Bart van Ingen Schenau, gnat Jan 4 at 21:33

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Are you sure you should be building that service? There are existing services that do that, and it's usually best to be conservative when handling other people's money. – David Thornley Feb 28 '11 at 16:15

This process is known as authorization & capture and is used by most major payment gateways, including PayPal and Amazon (Amazon refer to it as delayed order fulfillment or Reserve action).

PayPal on authorization and capture

Amazon on the Reserve action in their API

share|improve this answer
    
Thanks, Eran, I was just reading about PayPal's approach when I saw your response :) – BeachRunnerJoe Feb 24 '11 at 22:16

You can also use an online escrow site (which might be more appropriate for you).

Warning - if you do use an escrow or payment site, only ever use a Government registered site (there are unregistered scam escrow and payment sites out there).

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.