{"id":15715829,"url":"https://github.com/gnapse/2checkout-ruby","last_synced_at":"2025-10-13T21:08:57.705Z","repository":{"id":4350788,"uuid":"5486856","full_name":"gnapse/2checkout-ruby","owner":"gnapse","description":"2Checkout Ruby Library","archived":false,"fork":false,"pushed_at":"2012-08-20T21:21:34.000Z","size":102,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T20:18:27.548Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":false,"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/gnapse.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}},"created_at":"2012-08-20T21:13:52.000Z","updated_at":"2014-10-23T10:23:48.000Z","dependencies_parsed_at":"2022-09-22T12:12:03.567Z","dependency_job_id":null,"html_url":"https://github.com/gnapse/2checkout-ruby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gnapse/2checkout-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnapse%2F2checkout-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnapse%2F2checkout-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnapse%2F2checkout-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnapse%2F2checkout-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnapse","download_url":"https://codeload.github.com/gnapse/2checkout-ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnapse%2F2checkout-ruby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017049,"owners_count":26085949,"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-13T02:00:06.723Z","response_time":61,"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":[],"created_at":"2024-10-03T21:43:11.118Z","updated_at":"2025-10-13T21:08:57.666Z","avatar_url":"https://github.com/gnapse.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"2Checkout Ruby Library\n=====================\n\nThis library provides developers with a simple set of bindings to the 2Checkout purchase routine, Instant Notification Service and Back Office API.\n\nTo use, download or clone the repository.\n\n```shell\ngit clone https://github.com/craigchristenson/2checkout-ruby.git\n```\n\nOr import into your Gemfile\n\n```ruby\ngem 'twocheckout', :git =\u003e \"git://github.com/craigchristenson/2checkout-ruby.git\"\n```\n\nFull documentation for each binding will be provided in the [Wiki](https://github.com/craigchristenson/2checkout-ruby/wiki).\n\n\nExample API Usage\n-----------------\n\n*Example Usage:*\n\n```ruby\nTwocheckout.api_credentials=({'username' =\u003e 'APIuser1817037', 'password' =\u003e 'APIpass1817037'})\n\n@action = Twocheckout::Sale.refund({'sale_id' =\u003e 4769044324, 'comment' =\u003e \"test refund\", 'category' =\u003e 1})\nputs @action\n```\n\n*Example Response:*\n\n```json\n{\n   \"response_code\" : \"OK\",\n   \"response_message\" : \"refund added to invoice\"\n}\n```\n\nExample Checkout Usage:\n-----------------------\n\n*Example Usage:*\n\n```ruby\nrequire \"sinatra\"\n\nget '/' do\n  @@form = Twocheckout::Charge.submit({'sid' =\u003e 1817037, 'cart_order_id' =\u003e 'Example Sale', 'total' =\u003e 1.00})\n  @@form\nend\n```\n\nExample Return Usage:\n---------------------\n\n*Example Usage:*\n\n```ruby\nrequire \"sinatra\"\n\npost '/' do\n  @@response = Twocheckout::Return.request({ :credentials =\u003e {'sid' =\u003e '532001', 'secret' =\u003e 'tango'}, :params =\u003e params})\n  @@response.inspect\nend\n```\n\n*Example Response:*\n\n```json\n{\n   \"code\" : \"PASS\",\n   \"message\" : \"Hash Matched\"\n}\n```\n\nExample INS Usage:\n------------------\n\n*Example Usage:*\n\n```ruby\nrequire \"sinatra\"\n\npost '/' do\n @@response = Twocheckout::Ins.request({ :credentials =\u003e {'sid' =\u003e 532001, 'secret' =\u003e 'tango'}, :params =\u003e params})\n @@response.inspect\nend\n```\n\n*Example Response:*\n\n```json\n{\n   \"code\" : \"PASS\",\n   \"message\" : \"Hash Matched\"\n}\n```\n\nFull documentation for each binding will be provided in the [Wiki](https://github.com/craigchristenson/2checkout-ruby/wiki).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnapse%2F2checkout-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnapse%2F2checkout-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnapse%2F2checkout-ruby/lists"}