{"id":18728701,"url":"https://github.com/rubyonworld/omise-ruby","last_synced_at":"2026-05-03T15:34:16.545Z","repository":{"id":174008022,"uuid":"542158627","full_name":"RubyOnWorld/omise-ruby","owner":"RubyOnWorld","description":"Add the following to your Gemfile and run bundle install to install via RubyGems","archived":false,"fork":false,"pushed_at":"2022-09-28T01:09:16.000Z","size":200,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-19T20:32:38.455Z","etag":null,"topics":["gem","rails","ruby"],"latest_commit_sha":null,"homepage":"","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/RubyOnWorld.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2022-09-27T15:30:31.000Z","updated_at":"2022-09-28T04:14:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"972aaa6a-b074-4c78-87f8-88bc4cb71cd9","html_url":"https://github.com/RubyOnWorld/omise-ruby","commit_stats":null,"previous_names":["rubyonworld/omise-ruby"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RubyOnWorld/omise-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fomise-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fomise-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fomise-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fomise-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RubyOnWorld","download_url":"https://codeload.github.com/RubyOnWorld/omise-ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fomise-ruby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32575111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["gem","rails","ruby"],"created_at":"2024-11-07T14:23:48.790Z","updated_at":"2026-05-03T15:34:16.538Z","avatar_url":"https://github.com/RubyOnWorld.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Omise Ruby Client\n\n[![Maintainability](https://api.codeclimate.com/v1/badges/8297834e28572da75cf2/maintainability)](https://codeclimate.com/github/omise/omise-ruby/maintainability)\n\u003cimg alt=\"GitHub Actions status\" src=\"https://github.com/omise/omise-ruby/workflows/Ruby/badge.svg\"\u003e\n[![Gem](https://img.shields.io/gem/v/omise.svg?style=flat)](https://rubygems.org/gems/omise)\n\n## Installation\n\nAdd the following to your `Gemfile` and run `bundle install` to install via [RubyGems](https://rubygems.org/gems/omise):\n\n```ruby\ngem 'omise'\n```\n\nOr use the cutting-edge version by installing via GitHub:\n\n```ruby\ngem 'omise', github: 'omise/omise-ruby'\n```\n\n## Requirements\n\nTested on Ruby 2.5 and above\n\n## Configuration\n\nFirst configure your secret key:\n\n```ruby\nrequire \"omise\"\n\nOmise.api_key = \"skey_test_xxxxxxxxxxxxxxxxxxx\"\n```\n\nAfter you have implemented [Omise.js](https://www.omise.co/omise-js) on your frontend you can charge the card by passing the token generated by Omise.js into the `card` attribute.\n\n```ruby\n# Charge 1000.00 THB\ncharge = Omise::Charge.create({\n  amount: 1_000_00,\n  currency: \"thb\",\n  card: params[:omise_token]\n})\n\nif charge.paid\n  # handle success\n  puts \"thanks\"\nelse\n  # handle failure\n  raise charge.failure_code\nend\n```\n\nYou can check the complete documentation at [omise.co/docs](https://omise.co/docs).\n\n### API version\n\nIn case you want to enforce API version the application use, you can specify it\nby setting the `api_version`. The version specified by this settings will override\nthe version setting in your account. This is useful if you have multiple\nenvironments with different API versions (e.g. development on the latest but\nproduction on the older version).\n\n```ruby\nOmise.api_version = \"2019-05-29\"\n```\n\nIt is highly recommended to set this version to the current version you're using.\n\n### Logging\n\nTo enable logging you can set `Omise.logger` with a Ruby logger. All HTTP requests and responses will be logged.\n\nTo disable logging, just configure `Omise.logger` to `nil`. Default is disabled.\n\nAn example configuring Rails logger:\n\n```ruby\nOmise.logger = Rails.logger\n```\n\n## Development\n\nThe test suite can be run with `bundle exec rake test`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyonworld%2Fomise-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyonworld%2Fomise-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyonworld%2Fomise-ruby/lists"}