{"id":20487171,"url":"https://github.com/tiagopog/moneris-elixir","last_synced_at":"2026-05-18T19:05:03.954Z","repository":{"id":166505127,"uuid":"641992573","full_name":"tiagopog/moneris-elixir","owner":"tiagopog","description":"Elixir libraries for making payments with Moneris.","archived":false,"fork":false,"pushed_at":"2023-05-17T16:12:05.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-30T19:17:36.479Z","etag":null,"topics":["elixir","moneris","payments"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/tiagopog.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-17T15:30:09.000Z","updated_at":"2023-10-08T20:33:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"a885833c-6f1f-47f8-814c-b29aa970bbe9","html_url":"https://github.com/tiagopog/moneris-elixir","commit_stats":null,"previous_names":["tiagopog/moneris-elixir"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tiagopog/moneris-elixir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiagopog%2Fmoneris-elixir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiagopog%2Fmoneris-elixir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiagopog%2Fmoneris-elixir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiagopog%2Fmoneris-elixir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiagopog","download_url":"https://codeload.github.com/tiagopog/moneris-elixir/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiagopog%2Fmoneris-elixir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278846613,"owners_count":26056146,"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-07T02:00:06.786Z","response_time":59,"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":["elixir","moneris","payments"],"created_at":"2024-11-15T16:40:14.499Z","updated_at":"2025-10-07T21:04:46.079Z","avatar_url":"https://github.com/tiagopog.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MonerisElixir\n\nUnofficial Elixir client for processing payments through [Moneris](https://www.moneris.com/).\n\n## Installation\n\n```elixir\ndef deps do\n  [\n    {:moreris, git: \"https://github.com/tiagopog/moneris-elixir.git\"}\n  ]\nend\n```\n\n## Usage\n\n### Example of Pre-Authorization + Completion with CVD\n\n```elixir\n##\n# 1. Set up the gateway infomation:\n##\n\niex\u003e gateway = Moneris.Gateway.new(:development, \"{{username}}\", \"{{api_key}}\")\n%Moneris.Gateway{\n  url: \"https://esqa.moneris.com/gateway2/servlet/MpgRequest\",\n  store_id: \"{{username}}\",\n  api_token: \"{{api_key}}\"\n}\n\n##\n# 2. Pre-authorize the payment:\n##\n\niex\u003e Moneris.preauth(gateway, order, card)\n{:ok,\n %Moneris.Response{\n   order_id: \"e7e4a53245084998b5f7fa8155ffde10\",\n   amount: 1001,\n   transaction_number: \"10-0_482\",\n   reference_number: \"660188080010010130\",\n   message: \"Approved\",\n   code: 0,\n   cvd: \"1M\",\n   avs: \"\",\n   cvd_verified: false,\n   address_verified: false,\n   zipcode_verified: false,\n   success: true\n }}\n\n##\n# 3. Update the order with some data from pre-authorization step:\n##\n\niex\u003e order = %Moneris.Order{order | transaction_number: \"10-0_482\", reference_number: \"660188080010010130\"}\n%Moneris.Order{\n  order_id: \"e7e4a53245084998b5f7fa8155ffde10\",\n  amount: 1001,\n  crypt_type: 7,\n  cust_id: \"ecom-order-num-5\",\n  transaction_number: \"10-0_482\",\n  reference_number: \"660188080010010130\"\n}\n\n##\n# 4. Capture the payment:\n##\n\niex\u003e Moneris.capture(gateway, order)\n{:ok,\n %Moneris.Response{\n   order_id: \"e7e4a53245084998b5f7fa8155ffde10\",\n   amount: 1001,\n   transaction_number: \"11-1_482\",\n   reference_number: \"660188080010010140\",\n   message: \"Approved\",\n   code: 0,\n   cvd: \"\",\n   avs: \"\",\n   cvd_verified: false,\n   address_verified: false,\n   zipcode_verified: false,\n   success: true\n }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiagopog%2Fmoneris-elixir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiagopog%2Fmoneris-elixir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiagopog%2Fmoneris-elixir/lists"}