{"id":17040770,"url":"https://github.com/prabhakar267/dove","last_synced_at":"2025-08-01T16:06:51.040Z","repository":{"id":84854868,"uuid":"69734437","full_name":"prabhakar267/dove","owner":"prabhakar267","description":":moneybag: An offline payment service","archived":false,"fork":false,"pushed_at":"2017-10-17T16:58:07.000Z","size":337,"stargazers_count":30,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-26T09:04:27.174Z","etag":null,"topics":["offline-payments","redis","ruby","smartphone","sms"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prabhakar267.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-10-01T11:14:52.000Z","updated_at":"2024-12-19T22:36:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"e536c4a5-6c00-4695-85ed-267dca3d3150","html_url":"https://github.com/prabhakar267/dove","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/prabhakar267%2Fdove","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prabhakar267%2Fdove/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prabhakar267%2Fdove/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prabhakar267%2Fdove/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prabhakar267","download_url":"https://codeload.github.com/prabhakar267/dove/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248581187,"owners_count":21128118,"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":["offline-payments","redis","ruby","smartphone","sms"],"created_at":"2024-10-14T09:10:27.871Z","updated_at":"2025-04-12T14:32:57.009Z","avatar_url":"https://github.com/prabhakar267.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dove | Payments brought offline to users \u003cimg src=\"/assets/images/dove-and-cross-clipart-diraa694T.png\" width=\"60px\"\u003e\n\nDove is **an offline payment service**, built on the top of [PayTM APIs](http://paywithpaytm.com/developer/), which can be used on any mobile device (including legacy mobile devices which don't even have a GUI or provisions for internet connectivity) without installing any additional application.\n\nWe intended to target the demographics who don't own a smartphone or have proper internet access, staying true to \"Building for India\", the hackathon's theme.\n\nOur efforts also highlighted a way for PayTM to increase their user-base.\n\nThis was possible due to SMS capabilities in every mobile device, hence we hacked on that to make and receive payments easily using a simple keyword **dove**.\n\nWe built this using :\n\n* [Sinatra](http://www.sinatrarb.com/), Web framework for Ruby.\n* [Redis](https://redis.io/), In-memory key-value data store.\n\nWe also used the following to imitate an SMS gateway :\n\n* [Twilio](https://www.twilio.com/), cloud platform providing SMS APIs for text-messaging.\n* A mobile application to route text-messages to a web-server.\n\n## Setup\n\nRequirements:\n\n* Ruby\n* Redis\n* [bundler](https://bundler.io/) gem\n\nInstallation:\n\n1. Run `rake install`. It will install `bundler` if you have not it installed and install needed gems.\n1. Rename `config.json.sample` to `config.json` and replace `XXXX` with needed values.\n\nRunning:\n\n1. Run the service with `rake run` or just `rake` in your console.\n\n## Current Scope\n\n### Register User\n\n* Since registering a new user (unique : mobile number) is a 2-step process on PayTM, we implemented a similar logic.\n* User can simply initiate the registration process by sending the following text to a **PayTM dedicated number**\n\n```vim\ndove (reg | registration) \u003cemail\u003e\n```\n\n* Doing this results in the user receiving a SMS with  an OTP. He/She needs to send this to the dedicated number in the following format.\n\n```vim\ndove validate \u003cOTP\u003e\n```\n\nHooray! You successfully registered at PayTM (if you hadn't) and our service as well.\n\n### Check Available Balance\n\n```vim\ndove (bal | balance)\n```\n\n### Send / Pay Money to another number\n\n```vim\ndove (send | pay)  \u003cpayee number\u003e \u003camount\u003e\n```\n\n## Impact\n\nAccording to a [survey](http://www.thehindu.com/news/national/about-70-per-cent-indians-live-in-rural-areas-census-report/article2230211.ece) conducted by The Hindu in 2011, around 83.3 crore people still live in Rural India. In another [survey](http://www.livemint.com/Consumer/yT14OgtSC7dyywWSynWOKN/Only-17-Indians-own-smartphones-survey.html) by LiveMint, only 45% people in India owned a smartphone in 2013.\n\nIt seems we have created a possible user-base of around 83.3 crore people for PayTM. :v:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprabhakar267%2Fdove","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprabhakar267%2Fdove","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprabhakar267%2Fdove/lists"}