Releases: bitpay/php-bitpay-client-v2
v9.1.2
v9.1.1
v9.1.0
Overview
We've added support for a new header called X-BitPay-Platform-Info
, which will be used by our plugins. This is an optional string in the client instantiation that is backwards compatible.
What's Changed
- Added X-BitPay-Platform-Info
- Bump version to 9.1.0
Full Changelog: 9.0.4...9.1.0
9.0.4
Overview
This is a patch update that provides the following:
- Dependency updates
What's Changed
- symfony/console to 6.4.9
- phpunit/phpunit to 10.5.26
Full Changelog: 9.0.3...9.0.4
9.0.3
Overview
This is a patch update that provides the following:
- Package updates
What's Changed
- phpunit/phpunit to 10.5.21
- symfony/yaml to 6.4.8
- symfony/console to 6.4.8
Full Changelog: 9.0.2...9.0.3
9.0.2
What's Changed
- SP-935: Update satoshisPerByte to float and bump version
Full Changelog: 9.0.1...9.0.2
9.0.1
Overview
This is a patch update that provides the following:
- Package updates
What's Changed
- Updated dependencies
Full Changelog: 9.0.0...9.0.1
9.0.0
Overview
Note:
⚠️ denotes breaking changes
This is a major version that provides numerous enhancements, such as:
- Examples in the codebase
⚠️ More consistent exceptions⚠️ Better integration with custom loggers⚠️ General improvements to align with the API
PHP 8.3 Support
The SDK now supports PHP 8.3.
Examples in the Codebase
There are new examples in the codebase to show how the SDK can be used for various scenarios:
- Logging
- Using a custom logger with the SDK
- Bills (Merchant Facade)
- Creating a bill
- Getting a bill
- Updating a bill
- Delivering a bill via email
- Invoices (Merchant Facade)
- Creating an invoice
- Getting an invoice
- Updating an invoice
- Canceling an invoice
- Requesting an invoice notification
- Ledgers (Merchant Facade)
- Getting ledgers
- Getting ledger entries
- Refunds (Merchant Facade)
- Creating a refund
- Updating a refund
- Getting a refund
- Canceling a refund
- Request a refund notification to be resent
- Settlements (Merchant Facade)
- Getting a settlement reconciliation report
- Payouts (Payout Facade)
- Creating a payout
- Getting a payout
- Canceling a payout
- Requesting a payout webhook to be resent
- Requesting payout notifications
- Recipients (Payout Facade)
- Invite payout recipients
- Get payout recipients
- Update payout recipients
- Remove payout recipients
- Bills (POS Facade)
- Creating a bill
- Getting a bill
- Delivering a bill
- Invoices (POS Facade)
- Creating an invoice
- Getting an invoice
- Rates (Public Facade)
- Get rates for a cryptocurrency
- Get cryptocurrency / fiat currency pair rates
- Wallets (Public Facade)
- Get supported wallets
⚠️ More Consistent Exceptions
We have removed the old exception classes that added a tremendous amount of duplication across the SDK in favor of parsing the errors from the API. This makes the SDK less opinionated and relies on the API to inform consumers what happened, providing more consistency between the SDK and API. The result is that response messages and codes in exceptions thrown by the SDK will be 1:1 with API.
⚠️ Better Integration with Custom Loggers
You can now use your own logging framework using the new provider, giving more control over how logs are handled.
⚠️ General Improvements
- Updated dependencies
- Updated field types where they were misaligned with the API
- Added fields to the SDK that were missing
- Removed fields that are no longer in the API
- Fixed an issue when using a proxy
- Updated the config generator to be interactive
Full Changelog: 8.0.3...9.0.0
7.5.0
Overview
This is a minor release that only adds support for PHP 8.2 and 8.3, and allows for symfony/yaml version 7 to be used. This is to support the upcoming version of Magento 2.4.7
What's Changed
- Adds support for PHP 8.2 and 8.3 to the PHP SDK 7.x.x version
- Add support for symfony/yaml version 7
Notes
Full Changelog: 7.4.0...7.5.0
8.0.3
Overview
This is a patch update that provides the following:
- Package updates
- Test improvements
- Bug fixes
What's Changed
- Improved null and boolean assertions
- Updated dependencies
- Fixed a bug where the payoutPercentage property on BitPaySDK\Model\Settlement was a float instead of an array
- Fixed a bug where the SDK looked for "proxy" instead of "Proxy" in the config file keys
Thank you @peter279k for your contributions!
Full Changelog: 8.0.2...8.0.3