{"id":20891358,"url":"https://github.com/shoppyMN/most_ots","last_synced_at":"2025-05-12T21:31:12.925Z","repository":{"id":56884560,"uuid":"119016107","full_name":"shoppyMN/most_ots","owner":"shoppyMN","description":"Most Money External API wrapper","archived":false,"fork":false,"pushed_at":"2018-10-24T02:40:25.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-27T00:03:35.698Z","etag":null,"topics":["api-client","payment-gateway","rails","ruby","ruby-gem"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/shoppyMN.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-26T06:43:46.000Z","updated_at":"2019-01-28T11:11:41.000Z","dependencies_parsed_at":"2022-08-20T23:40:46.629Z","dependency_job_id":null,"html_url":"https://github.com/shoppyMN/most_ots","commit_stats":null,"previous_names":["ssxenon01/most_ots"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoppyMN%2Fmost_ots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoppyMN%2Fmost_ots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoppyMN%2Fmost_ots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoppyMN%2Fmost_ots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shoppyMN","download_url":"https://codeload.github.com/shoppyMN/most_ots/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253825022,"owners_count":21970120,"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":["api-client","payment-gateway","rails","ruby","ruby-gem"],"created_at":"2024-11-18T09:11:55.063Z","updated_at":"2025-05-12T21:31:12.657Z","avatar_url":"https://github.com/shoppyMN.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MostMoneyOts\n\n[![Gem Version](https://badge.fury.io/rb/most_ots.svg)](https://badge.fury.io/rb/most_ots) [![Build Status](https://travis-ci.org/ssxenon01/most_ots.svg?branch=master)](https://travis-ci.org/ssxenon01/most_ots)\n[![Maintainability](https://api.codeclimate.com/v1/badges/afbec1dd7a17291317f5/maintainability)](https://codeclimate.com/github/ssxenon01/most_ots/maintainability)\n[![codebeat badge](https://codebeat.co/badges/d51c6f19-41bd-4778-9492-629a0601d40d)](https://codebeat.co/projects/github-com-ssxenon01-most_ots-master)\n[![Inline docs](http://inch-ci.org/github/ssxenon01/most_ots.svg?branch=master)](http://inch-ci.org/github/ssxenon01/most_ots)\n[![Dependency Status](https://beta.gemnasium.com/badges/github.com/ssxenon01/most_ots.svg)](https://beta.gemnasium.com/projects/github.com/ssxenon01/most_ots)\n\n[Most Money](https://customer.mostmoney.mn/index.aspx?page=content/uctrademerchant#content~share)\nExternal Protocol\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'most_ots'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install most_ots\n\n## Usage\n\n```ruby\n  service = MostOts::Service.new(\n    most_pem_location: '[PATH TO MOST PUBLIC KEY]', \n    cipher_key: '[YOUR CYPHER KEY]', # can be nil in order to use random key\n    cipher_iv: [0x9C], # Most Provided cipher byte array for example [0x9C, 0xC6, 0x60, 0xD0, 0x1A, 0x13, 0x2C, 0x62, 0x68, 0x79, 0x92, 0x84, 0x71, 0xA6, 0x05, 0x13]\n    src_inst_id: '300000',\n    channel: '20', # \n    lang: '0', # 0: Монгол, 1, English\n    tran_cur: 'MNT', # Transaction Currency\n    pos_no: '1234',\n    payee_id: '0',\n    qr_account_name: '0',\n    qr_account_number: '0',\n    qr_bank_code: '0',\n    protocol_version: '05'\n  )\n  \n  response = service.purchase_qr(\n    traceNo: '2017052405430504',\n    tranAmount: '1.0',\n    tranDesc: 'Test: QR Purchase'\n  )\n```\n\n\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ssxenon01/most_ots. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the MostOts project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ssxenon01/most_ots/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FshoppyMN%2Fmost_ots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FshoppyMN%2Fmost_ots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FshoppyMN%2Fmost_ots/lists"}