Amazon FPS Hello World Sample in Ruby, Rails and REST

Sample Code & Libraries>Ruby>Amazon FPS Hello World Sample in Ruby, Rails and REST
Community Contributed Software

  • Amazon Web Services provides links to these packages as a convenience for our customers, but software not authored by an "@AWS" account has not been reviewed or screened by AWS.
  • Please review this software to ensure it meets your needs before using it.

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.

Details

Submitted By: Philip@AWS
AWS Products Used: Amazon FPS
Language(s): Ruby
License: Apache License 2.0
Created On: October 26, 2007 10:16 PM GMT
Last Updated: February 5, 2009 3:27 AM GMT
Download

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

  • Enter AWS Access Key and Secret Access Key into access_key and secret_access_key in fps-ruby-rest-helloworld/config/amazon_fps.yml.

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

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.