0.0.1 • Published 7 years ago

moaps v0.0.1

Weekly downloads
3
License
UNLICENSED
Repository
github
Last release
7 years ago

M.O.A.P.S

Mother Of All Payment Systems. It's actually an order system used by external vendors to request subscriptions for their users.

Request Buffering

In order to immediately accept requests and process them asynchronously, the /capture endpoint exists infront of a queue. The queue will be processed every minute by the process function.

Adding a new vendor

In order to support a new vendor, you have to create a new /src/resources/capture/handler/* handler. This handler must extend the base handler class and be registered as part of the capture index file.

Vendor information is also stored in the src/resources/auth/users.js file. This includes the vendor authorization key.

Babel compilation

Since this service is rather small, we compile it with babel before deploy instead of relying on webpack. The compiled app will be stored in the root /lib folder. It is important to reference /lib instead of source when importing files directly for some reason.