
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Add this line to your application's Gemfile:
gem 'btcpay'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install btcpay
At least one of the following auth tokens are required. Auth tokens can be created via the following:
auth_token
Scoped Api Tokens can be created via /Manage/APIKeys
BTCPAY_AUTH_TOKEN
environment variable can also be used
basic_auth_token
Legacy Api Key can be created per store via /stores/{store-id}/Tokens
BTCPAY_BASIC_AUTH_TOKEN
environment variable can also be used
A base_url
is required to interact with the server.
BTCPAY_BASE_URL
environment variable can also be usedclient = BtcPay.new(auth_token: 'foobar', base_url: 'http://localhost:49392')
A response consists of the following accessible attributes:
#body
- rubified response body#code
- response status code#headers
- response headers#raw
- unaltered response body#status
- :success
/:failure
All endpoints are accessed via namespaced Api resource. Example: client.users.create({ email: 'foo@bar.com', password: 'password', isAdministrator: false })
GET #current
POST #create(payload)
DELETE #revoke(key)
DELETE #revoke!
GET #status
GET #get(pull_payment_id)
GET #payouts
POST #create_payout(pull_payment_id, payload)
GET #info
GET #all
POST #create(payload)
GET #get(store_id)
DELETE #delete(store_id)
PUT #update(store_id, payload)
GET #all(store_id)
POST #create(store_id, payload)
GET #get(store_id, invoice_id)
DELETE #delete(store_id, invoice_id)
POST #update_status(store_id, invoice_id, payload, status)
POST #unarchive(store_id, invoice_id)
GET #all(store_id)
POST #create(store_id, payload)
GET #get(store_id, request_id)
DELETE #delete(store_id, request_id)
PUT #update(store_id, request_id, payload)
POST #approve(store_id, payout_id, payload)
DELETE #delete(store_id, payout_id)
GET #all(store_id)
POST #create(store_id, payload)
DELETE #delete(store_id, pull_payment_id)
GET #me
POST #create(payload)
GET #html(permissions: [], application_name:, strict: true, selective_stores: false)
#link(permissions: [], application_name:, strict: true, selective_stores: false)
btcpay
can be initialized with either arguments or ENV:
Variable | Description | Default |
---|---|---|
BTCPAY_AUTH_TOKEN | BtcPay Auth Token | - |
BTCPAY_BASIC_AUTH_TOKEN | BtcPay Basic Auth Token | - |
BTCPAY_BASE_URL | BtcPay Base Url | - |
To get up and running locally quickly, a BTCPayServer docker-compose file has been added to test local API interactions. To get up and running:
$ docker-compose -f docker-compose.btcpay.yml up
$ open http://localhost:49392
regtest
environment default to allow for block/coin creation for test purposetestnet
environment should be used for integration/staging testing prior to production promotion.mainnet
is the real network.After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on Gitlab at https://gitlab.com/snogrammer/btcpay.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that btcpay demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.