Coder Social home page Coder Social logo

amazon-fps-spring's Introduction

amazon-fps-spring

Amazon FPS Spring support.

So the Amazon people missed a little bit on the Flexible Payment Service API (FPS). This project helps to fix of some of the problems they made; mainly how it's configured. I'll write some more docs later.
Just initializing the project at the moment.

Dependencies

I mavenized their FPS project. The original was an ANT build. Since we're in the 21st century I thought stepping up to maven was a good idea. You should grab it first: git clone git://github.com/aweiland/amazon-fps.git

Configuration

The properties file configuration names that were defined by Amazon were not "namespaced" the way you would typically expect to see them. The main (only) Spring bean in this project does a little conversion from one name to another.

Here is a list of configuration parameters

Project Param Amazon Param What is it?

Have you figured out that I haven't finished this part yet?!!!?????!?!?!?!

Example

If you are using a java/annotation based configuration (and you should, it's awesome) initialize the bean this way:

Java Spring Configuration

@Configuration
@PropertySource({ "classpath:amazonfps.properties" })
public class SomeConfigClass {

  @Autowired
  private Environment environment;

  @Bean
  public AmazonFpsInterceptorBean amazonFpsInterceptorBean() {
    return new AmazonFpsInterceptorBean(this.environment);
  }
  
}

Properties file:

Assuming amazonfps.properties from above:

aws.fps.accessKeyId=1234567890
aws.fps.secretKeyId=qwertyuiop
aws.fps.endPoint=https://fps.sandbox.amazonaws.com
aws.cbui.endPoint=https://authorize.payments-sandbox.amazon.com/cobranded-ui/actions/start

amazon-fps-spring's People

Contributors

aweiland avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.