Merchant Server Component for the MPGS Mobile SDK Flow
915
Merchant Server Component for the MPGS SDK
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.
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.

| Operation | URL | HTTP Method | Authentication | Request | Response |
|---|---|---|---|---|---|
| Index | '/' | GET | APIKEY Header | N/A | N/A, Only Generates Log Output |
| Start Payment | '/startpayment' | POST | APIKEY Header | N/A | "id": "SessionID/NONE", "result": "SUCCESS/FAILURE" |
| Finish Payment | '/finishpayment' | PUT | APIKEY Header | "id": "SessionID" | "id": "SessionID", "result": "SUCCESS/FAILURE" |
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:
Content type
Image
Digest
Size
319.5 MB
Last updated
over 6 years ago
docker pull dangeroustech/mpgsmerchantserver