Giter VIP home page Giter VIP logo

amzn-payment-emulator's Introduction

Amazon Payment Flow Emulator

Quick & dirty Amazon Payment Flow emulator. Created to test some ideas on payment integration using the co-branded flow. This may also apply to PayPal since they provide similar integration.

Some basic principles of webhooks are used.

Building it

Easy as a pie (it is obvious that I have not idea as to how hard is to cook a pie)!

  $ git clone https://github.com/fcarriedo/amzn-payment-emulator.git && cd amzn-payment-emulator
  $ go get
  $ go build -o amzn

Running the Server

Usage:  ./amzn [options]

Starts the Amazon/Paypal emulation server

  -p=9500: the port to listen for connections

Using it

The entry point URL expects to have been redirected with several URL parameters that describe the payment authorization as well as the callback URL.

Example:

  1. after running the app (./amzn -p 8080), point your browser to the following example URL: http://localhost:8080/auth?callbackURL=http%3A%2F%2Fes-razrzone.ngrok.com%2Fcallback&amount=5&desc=Cosmos%20A%20Personal%20Voyage%20DVD%20Set&id=aaa123
  2. Authenticate to your imaginary account (any user/pwsd would do)
  3. Check your order and confirm the order (the given callback URL expects to be available or it will pop an error upon confirmation).

License

Of course covered by WTFPL License.

amzn-payment-emulator's People

Contributors

fcarriedo avatar

Stargazers

 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.