Hey there guys. I have a site where a donate option is available and I want to go about it in a certain way. I'm using Amazons Payment system for accepting donations.
Here's what I want to accomplish here.
I have an input id box that lets the user type in the amount they wish to donate, then they submit the amount to the site. I need the form to pass the dollar amount entered to amazon so that once you log in through AmazonPayments the amount is already set and ready to go.
A clear example of this is on www.kickstarter.com when you decide to "back a project" eg:(http://www.kickstarter.com/projects/adamwparker/fall-a-heart-warming-animated-short-film/pledge/new?clicked_reward=false&logged_in=false&p=0&ref=spotlight&v=u ) and enter a pledge amount. I notice that their amount box has a name of "backing[amount]" and when you click the submit button I know this name is passed to the server with the amount entered.. for example, if I typed in $153 as my pledge and click submit it will appear as backing[amount]=153.0 as one of the parameters in the address bar. Once you continue to Amazon the value of 153.00 is already entered.
Does anyone have any info on how they did this with their PHP script? i understand that it's basically an easy form call.. I'm just not sure how they made it talk to AmazonPayments and have there dollar value all entered and ready to go. Again, www.kickstarter.com is the prime example here as that is where I was inspired for this idea.
Thanks for all the help.