GithubHelp home page GithubHelp logo

isabella232 / bitpay-test-helper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitpay/bitpay-test-helper

0.0 0.0 0.0 128 KB

Command line tool to set up environment variables for testing BitPay integrations

License: MIT License

Elixir 100.00%

bitpay-test-helper's Introduction

BitPay Test Helper

Running 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.

The 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.

Once you have Erlang/Elixir installed, just place the binary bpth somewhere in your PATH. There are two commands bpth new <url> 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.

$ bpth new https://test.bitpay.com
Please run 'source .bpenv' to set variables
$ source .bpenv
$ bpth pair
HqeBHez
$

The 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".

bitpay-test-helper's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.