Sign inSign up

dangeroustech/mpgsmerchantserver

By dangeroustech

•Updated over 6 years ago

Merchant Server Component for the MPGS Mobile SDK Flow

Image
0

915

dangeroustech/mpgsmerchantserver repository overview

⁠MPGS Merchant Server

Build Status Go Report Card

Merchant Server Component for the MPGS SDK⁠

⁠Deploy via Heroku

Deploy

⁠Deploy via Docker

The sample docker-compose.yml can be used by simply running docker-compose up -d or the port can be altered by changing the mapping according to the Docker Port Specification⁠. Set the environment variables with your Mastercard Payment Gateway Services information.

⁠API Specification

Client Authentication is handled in the Auth method of the handlers.go file. By default this is a Header of "APIKEY" with a value of "TESTSDK". Feel free to modify this if necessary.

clientAuth

OperationURLHTTP MethodAuthenticationRequestResponse
Index'/'GETAPIKEY HeaderN/AN/A, Only Generates Log Output
Start Payment'/startpayment'POSTAPIKEY HeaderN/A"id": "SessionID/NONE", "result": "SUCCESS/FAILURE"
Finish Payment'/finishpayment'PUTAPIKEY Header"id": "SessionID""id": "SessionID", "result": "SUCCESS/FAILURE"
⁠Disclaimer

All service calls responsible for handling payment information should use best-in-class security practices. This software is intended for TEST / DEVELOPMENT purposes ONLY and is not intended to be used in a production environment. This app should only serve to satisfy the following use cases:

  • As a complimentary tool for the sample mobile apps when demonstrating functionality.
  • As a stop-gap solution for developers integrating their apps with the mobile SDKs and do not yet have service components in place to support an entire transaction lifecycle.

Tag summary

Content type

Image

Digest

Size

319.5 MB

Last updated

over 6 years ago

docker pull dangeroustech/mpgsmerchantserver