Sign inSign up

heia/payment-service

By heia

•Updated over 8 years ago

HEIA Payment Service integrates SixPay PayUnityFlex solution for online payments.

Image
0

231

heia/payment-service repository overview

⁠Payment microservice

This service aims to abstract integration to PayUnity Flex solution. Goals/requirements/notes:

  • service should be usable by multiple PayUnity clients (in HEIA context: hotels)
  • hotels can also be considered "payees" as they are on the recipient end of the transaction

⁠Setup

to import test data: mongoimport --db dbName --collection collectionName --file fileName.json --jsonArray

drop db afterwards: https://stackoverflow.com/questions/8857276/how-do-i-drop-a-mongodb-database-from-the-command-line/23909051⁠ ...

⁠Development

  • nodemon for refreshing
  • linter?
  • check style guides!
  • Grunt, Gulp? ...

⁠Testing

  • pyresttest
  • artillery.io?
  • Jasmine?

Scenario testing is done with AngularJS client application and Protractor. Prerequisite: installed JDK.

⁠Deployment

docker vs pm2 for node

⁠Logging

use this? http://expressjs.com/en/starter/generator.html⁠ $ DEBUG=myapp:* npm start

debug, winston, bunyan

⁠Documentation

This service comes with in-built OpenAPI documentation (Swagger). UI is accessible on ip:port/api-docs.

Database Collections:

  • payee

  • checkout

  • confirmation

⁠Important dependencies

  • NodeJs v6.11.1 (Boron)
  • npm 3.10.10
  • MongoDB

For JavaScript - NodeJS compatibility, check:

  1. Documentation generator: https://www.npmjs.com/package/swaggerize-express⁠

localhost:3000/checkout POST payload:

{ "payee": 15, "amount": 22, "currency": "EUR" }

response:

{ "formScriptSrc": "https://test.oppwa.com/v1paymentWidgets.js?checkoutId=C87BABFFDD6FFD6B5CFEB9DE603BF224.sbg-vm-tx01⁠", "formClass": "paymentWidgets", "dataBrands": "AMEX VISA" }

⁠Contact

Radomir Djurdjevic, [email protected]⁠

⁠References

https://payunity.docs.oppwa.com/⁠ https://github.com/Subscribo/omnipay-payunity#gateway-payunitypost⁠

Tag summary

Content type

Image

Digest

Size

267.3 MB

Last updated

over 8 years ago

docker pull heia/payment-service