|
Release Date: 2007-10-26
Summary
This sample is targeted at getting you started with making FPS pay calls in five easy steps using Ruby, Rails and the Amazon FPS REST API.
FPS requires 3 tokens to make a pay call. You will create these tokens with steps 1, 2, and 3. You will make the pay call with step 4, and you will review the results of the pay call in step 5.
To use these files, you will need to have Ruby and Ruby on Rails
Setup
- Download and install the following software
| Software |
Version |
| Ruby |
1.8.5+ |
| Rails |
1.2.3 |
Extract the contents of FPS-Ruby-REST-HelloWorld.zip to a folder. A directory named fps-ruby-rest-helloworld will be created.
Please enable your AWS account for use with the FPS Sandbox by clicking here.
Please create an Amazon Payments test account by clicking here. Please log in using this account to acquire a sender token after step 3-a.
Configuration
Running the Application
Change your working directory to fps-ruby-rest-helloworld
Run application in Windows CMD : ruby script\server
Run application in *NIX or Mac shell : /script/server
The 5 Steps to Get Started
Now open http://localhost:3000/fps/ in your browser and follow the steps. You will go through the following steps.
Step 1 : Install Caller Token on your account
Step 2 : Install Recipient Token on your account
Step 3a: Acquire a Sender Token - Direct the user to Amazon Payments Co-Branded UI
Step 3b: Acquire a Sender Token - Handle response from Sender Token Installation Pipeline
Step 4 : Execute Payment
Step 5 : View Transaction Details
Use this thread for submitting reviews, bugs, or discussion of this sample app:
[ANN] Amazon FPS Hello World Sample in Ruby, Rails and REST http://developer.amazonwebservices.com/connect/thread.jspa?messageID=70450
|