{"id":16805155,"url":"https://github.com/onyb/veritrans-payment-portals","last_synced_at":"2026-08-03T18:31:05.960Z","repository":{"id":88704815,"uuid":"53150718","full_name":"onyb/veritrans-payment-portals","owner":"onyb","description":"A simplified way to search payment gateway!","archived":false,"fork":false,"pushed_at":"2016-03-05T04:35:53.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T16:40:51.733Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onyb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2016-03-04T16:53:28.000Z","updated_at":"2016-03-04T17:20:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"fbcfbde2-fcf0-4d13-9250-69865fb9adf8","html_url":"https://github.com/onyb/veritrans-payment-portals","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/onyb%2Fveritrans-payment-portals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onyb%2Fveritrans-payment-portals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onyb%2Fveritrans-payment-portals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onyb%2Fveritrans-payment-portals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onyb","download_url":"https://codeload.github.com/onyb/veritrans-payment-portals/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243989726,"owners_count":20379649,"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-10-13T09:47:21.160Z","updated_at":"2025-10-06T18:32:50.689Z","avatar_url":"https://github.com/onyb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Veritrans Payment Portals\n\nThis project is a pseudo backend application which lets users search\nand list payment gateway details conveniently. It is a part of\nHackerEarth's Veritrans backend programming challenge.\n\n#### Sample Payment Portal data\n\n```js\n{\n  \"id\": \"7\",\n  \"name\": \"Stripe\",\n  \"image\": \"http://www.commercegurus.com/wp-content/uploads/2014/09/Stripe-Logo.png\",\n  \"description\": \"Stripe is a suite of APIs that powers commerce for businesses of all sizes.\",\n  \"branding\": \"1\",\n  \"rating\": \"4.1\",\n  \"currencies\": \"USD, AUD, CAD, GDP, EUR, INR\",\n  \"setup_fee\": \"0\",\n  \"transaction_fees\": \"2.9% + 0.30$\",\n  \"how_to_url\": \"https://stripe.com/docs/checkout/tutorial\"\n}\n```\n\n#### Features implemented\n- Full text search on `name` field, powered by MongoDB\n- Search by currencies\n- Pagination of response to 3 items per page\n- Page size can be modified using query params\n- Sort by `rating`\n- Deployed using Heroku, and mLab\n- API endpoints implemented are `/api/payments/list`, `/api/payments/count`, and `/api/payments/search`\n \n#### API documentation\n- `GET /api`\n  - API root - returns a 400 error\n  - e.g. [/api](http://immense-stream-97040.herokuapp.com/api)\n- `POST /api/payments`\n  - Endpoint to validate and add payment data through POST request\n  \n- `GET /api/payments/list`\n  - Returns a JSON containing all payment details, paginated by 3 results per page by default.\n  - e.g. [/api/payments/list](http://immense-stream-97040.herokuapp.com/api/payments/list)\n  - Accepts query parameters `page` and `limit` for custom pagination.\n  - e.g. [/api/payments/list?limit=2](http://immense-stream-97040.herokuapp.com/api/payments/list?limit=2)\n  - e.g. [/api/payments/list?page=3](http://immense-stream-97040.herokuapp.com/api/payments/list?page=3)\n  - e.g. [/api/payments/list?limit=2\u0026page=3](http://immense-stream-97040.herokuapp.com/api/payments/list?limit=2\u0026page=3)\n- `GET /api/payments/search`\n  - Perform search operations on various fields, with the `name` field being a full text search\n  - e.g. [/api/payments/search?name=VT](http://immense-stream-97040.herokuapp.com/api/payments/search?name=VT)\n  - Search results can be paginated just like in `/api/payments/list`\n  - e.g. [/api/payments/search?name=VT\u0026limit=2\u0026page=2](http://immense-stream-97040.herokuapp.com/api/payments/search?name=VT\u0026limit=2\u0026page=2)\n  - Search by currency\n  - e.g. [/api/payments/search?currency=SGD](http://immense-stream-97040.herokuapp.com/api/payments/search?currency=SGD)\n  - Full text search and currency search can be performed together, along with optional pagination\n  - e.g. [/api/payments/search?currency=INR\u0026name=stripe](http://immense-stream-97040.herokuapp.com/api/payments/search?currency=INR\u0026name=stripe)\n  \n\n#### Tech Stack\n- Python 3 (tested on 3.5.1)\n- Flask for the web application and API\n- MongoDB for the backend database\n- Flask-PyMongo, a wrapper around PyMongo\n- Gunicorn as the WSGI HTTP server\n- Heroku for deployement\n\n#### Contributing\nOnce the challenge is over, I will switch to a public domain license, so that it\ncan be reused for bigger projects without second thoughts. The project can be\nused as a boilerplate for applications based on Flask and MongoDB.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonyb%2Fveritrans-payment-portals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonyb%2Fveritrans-payment-portals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonyb%2Fveritrans-payment-portals/lists"}