{"id":20661946,"url":"https://github.com/mirantis/k8srnd-sockshop-payment","last_synced_at":"2026-04-21T01:32:17.634Z","repository":{"id":140968197,"uuid":"207747854","full_name":"Mirantis/k8srnd-sockshop-payment","owner":"Mirantis","description":null,"archived":false,"fork":false,"pushed_at":"2020-02-26T12:36:53.000Z","size":81,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-20T17:50:47.623Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mirantis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-11T07:16:41.000Z","updated_at":"2023-08-18T13:40:26.000Z","dependencies_parsed_at":"2024-06-19T10:14:07.543Z","dependency_job_id":"f3f0161f-ec8f-473f-ba04-49024d72faac","html_url":"https://github.com/Mirantis/k8srnd-sockshop-payment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mirantis%2Fk8srnd-sockshop-payment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mirantis%2Fk8srnd-sockshop-payment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mirantis%2Fk8srnd-sockshop-payment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mirantis%2Fk8srnd-sockshop-payment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mirantis","download_url":"https://codeload.github.com/Mirantis/k8srnd-sockshop-payment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242793058,"owners_count":20185949,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T19:12:22.999Z","updated_at":"2025-12-13T13:19:33.268Z","avatar_url":"https://github.com/Mirantis.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Payment\n[![Build Status](https://travis-ci.org/microservices-demo/payment.svg?branch=master)](https://travis-ci.org/microservices-demo/payment)\n[![Coverage Status](https://coveralls.io/repos/github/microservices-demo/payment/badge.svg?branch=master)](https://coveralls.io/github/microservices-demo/payment?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/microservices-demo/user)](https://goreportcard.com/report/github.com/microservices-demo/user)\n[![](https://images.microbadger.com/badges/image/weaveworksdemos/payment.svg)](http://microbadger.com/images/weaveworksdemos/payment \"Get your own image badge on microbadger.com\")\n\nA microservices-demo service that provides payment services.\nThis build is built, tested and released by travis.\n\n## Bugs, Feature Requests and Contributing\nWe'd love to see community contributions. We like to keep it simple and use Github issues to track bugs and feature requests and pull requests to manage contributions.\n\n## API Spec\n\nCheckout the API Spec [here](http://microservices-demo.github.io/api/index?url=https://raw.githubusercontent.com/microservices-demo/payment/master/api-spec/payment.json)\n\n## Build\n\n#### Dependencies\n```\ncd $GOPATH/src/github.com/microservices-demo/payment/\ngo get -u github.com/FiloSottile/gvt\ngvt restore\n```\n\n#### Using native Go tools\nIn order to build the project locally you need to make sure that the repository directory is located in the correct\n$GOPATH directory: $GOPATH/src/github.com/microservices-demo/payment/. Once that is in place you can build by running:\n\n```\ncd $GOPATH/src/github.com/microservices-demo/payment/paymentsvc/\ngo build -o payment\n```\n\nThe result is a binary named `payment`, in the current directory.\n\n#### Using Docker Compose\n`docker-compose build`\n\n## Test\n`COMMIT=test make test`\n\n## Run \n\n#### Using Go native\n\nIf you followed to Go build instructions, you should have a \"payment\" binary in $GOPATH/src/github.com/microservices-demo/payment/cmd/paymentsvc/.\nTo run it use:\n```\n./payment\nts=2016-12-14T11:48:58Z caller=main.go:29 transport=HTTP port=8080\n```\n\n#### Using Docker Compose\n\nIf you used Docker Compose to build the payment project, the result should be a Docker image called `weaveworksdemos/payment`.\nTo run it use:\n```\ndocker-compose up\n```\n\nYou can now access the service via http://localhost:8082\n\n## Check\n\nYou can check the health of the service by doing a GET request to the health endpoint:\n\n```\ncurl http://localhost:8082/health\n{\"health\":[{\"service\":\"payment\",\"status\":\"OK\",\"time\":\"2016-12-14 12:22:04.716316395 +0000 UTC\"}]}\n```\n\n## Use\n\nYou can authorise a payment by POSTing to the paymentAuth endpoint:\n\n```\ncurl -H \"Content-Type: application/json\" -X POST -d'{\"Amount\":40}'  http://localhost:8082/paymentAuth\n{\"authorised\":true}\n```\n\n## Push\n`GROUP=weaveworksdemos COMMIT=test ./scripts/push.sh`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirantis%2Fk8srnd-sockshop-payment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirantis%2Fk8srnd-sockshop-payment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirantis%2Fk8srnd-sockshop-payment/lists"}