{"id":18728617,"url":"https://github.com/rubyonworld/sdk-ruby","last_synced_at":"2025-10-11T10:32:14.886Z","repository":{"id":174008134,"uuid":"542165571","full_name":"RubyOnWorld/sdk-ruby","owner":"RubyOnWorld","description":"Ruby gem wrapper for official Liqpay SDK https://github.com/liqpay/sdk-ruby","archived":false,"fork":false,"pushed_at":"2022-09-27T18:33:43.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-19T20:31:58.671Z","etag":null,"topics":["gem","ruby","sdk","wrapper"],"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/RubyOnWorld.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,"zenodo":null}},"created_at":"2022-09-27T15:46:06.000Z","updated_at":"2022-09-27T22:38:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"c690a6f2-2843-4343-825f-dafab6964b5b","html_url":"https://github.com/RubyOnWorld/sdk-ruby","commit_stats":null,"previous_names":["rubyonworld/sdk-ruby"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RubyOnWorld/sdk-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fsdk-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fsdk-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fsdk-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fsdk-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RubyOnWorld","download_url":"https://codeload.github.com/RubyOnWorld/sdk-ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fsdk-ruby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006846,"owners_count":26084206,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","ruby","sdk","wrapper"],"created_at":"2024-11-07T14:22:19.038Z","updated_at":"2025-10-11T10:32:14.881Z","avatar_url":"https://github.com/RubyOnWorld.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby gem for liqpay.ua API\n\nRuby gem wrapper for official Liqpay SDK https://github.com/liqpay/sdk-ruby\n\n## Installation\n\nAdd the gem to your Gemfile:\n\n```ruby\ngem 'liqpay', github: 'liqpay/sdk-ruby'\n```\n\nAnd don't forget to run Bundler:\n\n```shell\n$ bundle install\n```\n\n## Configuration\n\nGet API keys on https://www.liqpay.ua/ and save them in config:\n \n```ruby\n# config/initializers/liqpay.rb\n\n::Liqpay.configure do |config|\n  config.public_key = 'public_key'\n  config.private_key = 'private_key'\nend\n```\n\nYou can also store API keys in `ENV['LIQPAY_PUBLIC_KEY']` and `ENV['LIQPAY_PRIVATE_KEY']`\n\n## Usage\n\nFull Liqpay API documentation is available on https://www.liqpay.ua/en/doc\n\n### Api\n\n```ruby\nrequire 'liqpay'\nliqpay = Liqpay.new\nliqpay.api('request', {\n  action:   'invoice_send',\n  version:  '3',\n  email:    email,\n  amount:   '1',\n  currency: 'USD',\n  order_id: order_id,\n  goods:    [{\n    amount: 100,\n    count:  2,\n    unit:   'шт.',\n    name:   'телефон'\n  }]\n})\n```\n\n### Checkout\n\n```ruby\nhtml = liqpay.cnb_form({\n  action:      \"pay\",\n  amount:      \"1\",\n  currency:    \"USD\",\n  description: \"description text\",\n  order_id:    \"order_id_1\",\n  version:     \"3\"\n})\n```\n\n### Callback\n\n```ruby\ndata      = request.parameters['data']\nsignature = request.parameters['signature']\n\nif liqpay.match?(data, signature)\n  responce_hash = liqpay.decode_data(data)\n  # Check responce_hash['status'] and process due to Liqpay API documentation.\nelse\n# Wrong signature!\nend\n```\n\n## Tests\n\nTo pass the API tests, specify API keys in `ENV['LIQPAY_PUBLIC_KEY']` and `ENV['LIQPAY_PRIVATE_KEY']`\nor in `spec/dummy/config.rb`:\n\n```ruby\n# spec/dummy/config.rb\n::Liqpay.configure do |config|\n  config.public_key = 'public_key'\n  config.private_key = 'private_key'\nend\n```\nTo run local only tests(keys are not required), execute\n```\nrspec --tag ~@real\n```\n\nWith real api test you can specify email to recive invoce from Liqpay:\n```\nLIQPAY_PUBLIC_KEY=real_public_key LIQPAY_PRIVATE_KEY=real_private_key TEST_EMAIL=real_email rspec --tag @real\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyonworld%2Fsdk-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyonworld%2Fsdk-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyonworld%2Fsdk-ruby/lists"}