bitpay / sdk
Complete version of the PHP library for the new cryptographically secure BitPay API
Installs: 222 420
Dependents: 4
Suggesters: 0
Security: 0
Stars: 42
Watchers: 8
Forks: 41
Open Issues: 2
Requires
- php: ^8.1 || ^8.2 || ^8.3
- ext-json: *
- ext-reflection: *
- bitpay/key-utils: ^1.1
- guzzlehttp/guzzle: ^7.0
- netresearch/jsonmapper: ^4.1
- symfony/console: ^6.0
- symfony/yaml: ^5.4 || ^6.0 || ^7.0
Requires (Dev)
- phpunit/phpunit: ^9.0 || ^10.2.2
- dev-master
- 9.1.x-dev
- 9.1.2
- 9.1.1
- 9.1.0
- 9.0.x-dev
- 9.0.4
- 9.0.3
- 9.0.2
- 9.0.1
- 9.0.0
- 8.0.x-dev
- 8.0.3
- 8.0.2
- 8.0.1
- 8.0.0
- 8.0.0-beta2
- 8.0.0-beta1
- 7.5.x-dev
- 7.5.0
- 7.4.0
- 7.3.1
- 7.3.0
- 7.2.0
- 7.1.0
- 7.0.1
- 7.0.0
- v6.0.2111
- v5.2.2106
- v5.1.2106
- v5.0.2011
- v4.0.2010
- v4.0.2007
- v4.0.2006
- v3.6.2005
- v3.5.2003
- v3.5.2002.1
- v3.5.2002
- v3.4.1912.1
- v3.4.1912
- v3.3.1911.2
- v3.3.1911.1
- v3.3.1911
- v3.2.1911
- v3.2.1910
- v3.1.1910
- v3.0.1910
- dev-dependabot/composer/symfony/console-7.1.8
- dev-dependabot/composer/symfony/yaml-7.1.6
- dev-dependabot/composer/phpunit/phpunit-10.5.38
- dev-dependabot/composer/bitpay/key-utils-2.0.4
- dev-dependabot/composer/guzzlehttp/guzzle-7.9.2
- dev-8.0.0-dev
This package is auto-updated.
Last update: 2024-11-22 19:42:00 UTC
README
BitPay PHP Client
Full implementation of the BitPay Payment Gateway. This library implements BitPay's Cryptographically Secure RESTful API.
Getting Started
To get up and running with our PHP library quickly, follow the guide
Support
Requirements
- PHP version: 8.1 / 8.2 / 8.3
- PHP extensions: json, reflection
Unit Tests
./vendor/bin/phpunit --testsuite "Unit"
Functional Tests
To run functional tests you will need to perform the following steps.
Generate Configuration
Run the following command to generate BitPay.config.yml
:
composer setup
Copy BitPay.config.yml
to the test/functional/BitPaySDK
directory.
Copy PrivateKeyName.key
to the setup
directory.
Create Recipient
To submit requests you should:
- Create a recipient in https://test.bitpay.com/dashboard/payouts/recipients
- Accept the invite in the recipient's email inbox
- Create a file at
test/functional/BitPaySDK/email.txt
containing the email address of the recipient you created in step 1.
Run the Functional Tests
Run the following command to execute the functional tests:
./vendor/bin/phpunit --testsuite "Functional"
Contribute
To contribute to this project, please fork and submit a pull request.
License
MIT License
Copyright (c) 2019 BitPay
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.