{"id":20305809,"url":"https://github.com/bitpay/bitpay-test-helper","last_synced_at":"2025-04-11T14:52:02.241Z","repository":{"id":66192380,"uuid":"42962840","full_name":"bitpay/bitpay-test-helper","owner":"bitpay","description":"Command line tool to set up environment variables for testing BitPay integrations","archived":false,"fork":false,"pushed_at":"2015-09-22T22:13:38.000Z","size":128,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-06T08:03:03.236Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bitpay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-22T21:47:07.000Z","updated_at":"2024-08-29T17:03:45.000Z","dependencies_parsed_at":"2023-02-20T00:00:56.084Z","dependency_job_id":null,"html_url":"https://github.com/bitpay/bitpay-test-helper","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitpay-test-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitpay-test-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitpay-test-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitpay-test-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitpay","download_url":"https://codeload.github.com/bitpay/bitpay-test-helper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248425173,"owners_count":21101314,"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":[],"created_at":"2024-11-14T17:09:57.671Z","updated_at":"2025-04-11T14:52:02.224Z","avatar_url":"https://github.com/bitpay.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"BitPay Test Helper\n=========\n\nRunning automated tests with BitPay libraries usually requires setting some environment variables and associating them with your test account. The BitPay Test Helper is a simple command line utility that will set the command line variables for some of the libraries, including the Go, Ruby, and Elixir libraries.\n\nThe Test Helper is written in Elixir, version 1.0.5, so you will need to install Erlang 17.5 or Elixir in order to run the binary. Most package managers will have Erlang or Elixir. It isn't strictly neccessary to have Elixir as well as Erlang, but install instructions for Elixir are a bit clearer and can be found on the [Elixir web site](http://elixir-lang.org/install.html).\n\nOnce you have Erlang/Elixir installed, just place the binary bpth somewhere in your PATH. There are two commands `bpth new \u003curl\u003e` and `bpth pair`. The first command creates a new file in the folder where it is run called `.bpenv`. An example shell session is shown below.\n\n```shell\n$ bpth new https://test.bitpay.com\nPlease run 'source .bpenv' to set variables\n$ source .bpenv\n$ bpth pair\nHqeBHez\n$\n```\n\nThe output string from `bpth pair` is a pairing code for a merchant token. You can approve the token by logging into your dashboard and looking under \"Payment Tools\" and then \"Manage API tokens\".\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitpay%2Fbitpay-test-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitpay%2Fbitpay-test-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitpay%2Fbitpay-test-helper/lists"}