Commit Graph

305 Commits

Author SHA1 Message Date
ndeet
a3004b382b
Adding new subscription routes and updating subs examples. (#142)
Some checks failed
Code Style / php-cs-fixer (push) Has been cancelled
Static analysis (Psalm) / Psalm (8.0) (push) Has been cancelled
* Adding new subscription routes and updating subs examples.

* Updating github actions due to deprecated nodejs 20.
2026-04-30 11:29:35 +02:00
ndeet
60e6be57f9
Fixes #136 by adding BTCPay >=2.0 parameter. (#141)
Some checks failed
Code Style / php-cs-fixer (push) Has been cancelled
Static analysis (Psalm) / Psalm (8.0) (push) Has been cancelled
2026-01-21 12:31:48 +01:00
Števo Bartko
7d244da111
FIX - php8.4 compatiblity - Explicit nullable param type (#133) 2026-01-21 11:47:07 +01:00
ndeet
e9b01b5266
Change hash comparison, fixes #138 (#140) 2026-01-20 22:51:56 +01:00
ndeet
db79fee3d2
Add subscriptions support. (#139)
* Add subscriptions support.
2026-01-20 22:43:02 +01:00
ndeet
3118f9e4e0
BTCPay 2.0 compatibilty for pull payments due to changed parameter name. (#132)
Some checks failed
Code Style / php-cs-fixer (push) Has been cancelled
Static analysis (Psalm) / Psalm (8.0) (push) Has been cancelled
2024-11-22 17:34:09 +01:00
ndeet
f4fac20f19
Adding filters to invoices search. (#130)
Some checks failed
Code Style / php-cs-fixer (push) Has been cancelled
Static analysis (Psalm) / Psalm (8.0) (push) Has been cancelled
* Adding filters to invoices search.
2024-11-05 21:44:23 +01:00
ndeet
28197bf65f
Merge pull request #128 from ndeet/cleanup
Some checks failed
Code Style / php-cs-fixer (push) Has been cancelled
Static analysis (Psalm) / Psalm (8.0) (push) Has been cancelled
Cleanup and adding getCurrency() for new data field.
2024-09-16 23:02:29 +02:00
ndeet
108f18b444 Cleanup and adding getCurrency() for new data field. 2024-09-16 23:01:08 +02:00
ndeet
5e2ba7e3f5 Move description parameter to end to not cause breaking change in minor release.
Some checks failed
Code Style / php-cs-fixer (push) Has been cancelled
Static analysis (Psalm) / Psalm (8.0) (push) Has been cancelled
2024-09-13 16:54:13 +02:00
ndeet
9bbb7e8ebe
BTCPay 2.0 compatibiltiy fixes in a backward compatible way. (#127)
* BTCPay 2.0 compatibiltiy fixes in a backward compatible way.

* Update GH workflow dependencies.
2024-09-12 16:54:24 +02:00
Markus Petzsch
60e7b42de2
add description field to pull payment (#125)
* add description field to pull payments
2024-06-27 15:04:02 +02:00
ndeet
c115b04157
Add refund invoice endpoint. Add getters to ApiKey result. (#123)
Some checks failed
Code Style / php-cs-fixer (push) Has been cancelled
PHP Unit Tests / phpunit (8.0, latest) (push) Has been cancelled
PHP Unit Tests / phpunit (8.1, latest) (push) Has been cancelled
Static analysis (Psalm) / Psalm (8.0) (push) Has been cancelled
* Add refund invoice endpoint. 
* Add getters to ApiKey result.
2024-04-25 11:19:49 +02:00
ndeet
385b7f6882
Adding missing stores endpoints update/delete (#122)
Some checks failed
Code Style / php-cs-fixer (push) Has been cancelled
PHP Unit Tests / phpunit (8.0, latest) (push) Has been cancelled
PHP Unit Tests / phpunit (8.1, latest) (push) Has been cancelled
Static analysis (Psalm) / Psalm (8.0) (push) Has been cancelled
* Adding missing functions of updating and deleting store; renaming examples file.
2024-04-03 10:35:46 +02:00
ndeet
b88cd1cf5c
Create onchain wallet (#120)
Some checks failed
Code Style / php-cs-fixer (push) Has been cancelled
PHP Unit Tests / phpunit (8.0, latest) (push) Has been cancelled
PHP Unit Tests / phpunit (8.1, latest) (push) Has been cancelled
Static analysis (Psalm) / Psalm (8.0) (push) Has been cancelled
* Adding createStoreOnChainWallet functionality.
2024-03-25 19:42:58 +01:00
ndeet
8b119a836a
Fix http status check on create user. (#113) 2023-06-28 22:45:39 +02:00
ndeet
72292879fe
Adding new endpoints (#110)
* Adding Store (Users) endpoints.

* Add Store Email endpoints; fix codestyle.

* Adding Store Rates, Rates config, rate sources.

* Add server info example.
2023-05-02 19:26:34 +02:00
Markus Petzsch
9a01503ce9
Add updateInvoice method to Client (#108)
Some checks failed
PHP Unit Tests / phpunit (8.1, latest) (push) Has been cancelled
Code Style / php-cs-fixer (push) Has been cancelled
PHP Unit Tests / phpunit (8.0, latest) (push) Has been cancelled
Static analysis (Psalm) / Psalm (8.0) (push) Has been cancelled
2023-03-28 12:08:01 +02:00
ndeet
a3456b5277
Update checkout v2 to v3 as NodeJS 12 support will get dropped. (#103)
Some checks failed
Code Style / php-cs-fixer (push) Has been cancelled
PHP Unit Tests / phpunit (8.0, latest) (push) Has been cancelled
PHP Unit Tests / phpunit (8.1, latest) (push) Has been cancelled
Static analysis (Psalm) / Psalm (8.0) (push) Has been cancelled
2023-03-10 10:46:56 +01:00
ndeet
f54ad83678
Add return type. (#106) 2023-03-10 10:46:12 +01:00
ndeet
041fc08159
Add support for user specific api key management. (#102) 2023-03-09 22:33:01 +01:00
ndeet
d6f176fe70
Revert "Add support for creating API keys with different user. (#97)" (#101)
This reverts commit 25456082d1.
2023-03-03 10:42:01 +01:00
ndeet
c3b13058bd
Allow to lock (toggle) users. (#98)
Allow to lock (toggle) users.
2023-02-22 11:24:53 +01:00
ndeet
25456082d1
Add support for creating API keys with different user. (#97)
Add support for creating API keys with different user.
2023-02-21 15:12:28 +01:00
sillyh4ck3r
84fcd1e82e
Add patchStoreOnChainWalletTransaction method. (#95)
Add patchStoreOnChainWalletTransaction method.
2023-02-20 12:30:37 +01:00
ndeet
d4e2036aff
create api key; create store (#96)
Some checks failed
PHP Unit Tests / phpunit (8.1, latest) (push) Has been cancelled
Code Style / php-cs-fixer (push) Has been cancelled
PHP Unit Tests / phpunit (8.0, latest) (push) Has been cancelled
Static analysis (Psalm) / Psalm (8.0) (push) Has been cancelled
2023-02-10 11:05:12 +01:00
Andreas Tasch
5a500be38a
Merge pull request #83 from petzsch/patch-1
Update README.md - change required PHP Version
2022-10-29 12:05:08 +02:00
Markus Petzsch
c3170b33a4
Update README.md - change required PHP Version 2022-10-29 11:40:11 +02:00
Andreas Tasch
406a77533b
Merge pull request #81 from ndeet/v2-more-breaking
Some checks failed
Code Style / php-cs-fixer (push) Has been cancelled
PHP Unit Tests / phpunit (8.0, latest) (push) Has been cancelled
PHP Unit Tests / phpunit (8.1, latest) (push) Has been cancelled
Static analysis (Psalm) / Psalm (8.0) (push) Has been cancelled
Remove isPaid() and fix isSettled() to include late payment.
2022-10-27 23:37:29 +02:00
Andreas Tasch
b27d1f7f82 Remove isPaid() and fix isSettled() to include late payment. 2022-10-27 23:32:30 +02:00
Andreas Tasch
f4742514a1
Merge pull request #80 from ndeet/v2-preparation
V2 preparation
2022-10-27 23:23:33 +02:00
Andreas Tasch
2d096367bc Rename Invoice function isFullyPaid() to isSettled() the function name was misleading. 2022-10-27 22:59:52 +02:00
Andreas Tasch
6d12fa250f Add ArrayAccess return type hints to fix deprecation warnings in PHP 8.1+. 2022-10-27 22:48:57 +02:00
utxo.one
4553595740
Import Classes, Remove Deprecated Methods (#78)
* Import Classes, Remove Deprecated Methods
2022-10-27 19:33:52 +02:00
utxo.one
c4202a731c
Lightning Internal Node Updates & Tests (#74)
* Added Missing Invoice Getter Methods

* Fixed getId Method Array Key

* PreciseNumber to getAmount on invoices

* Return parseString method on getAmount()

* Updated Signature Key, Exception Condition

* Lightning Internal Node Updates & Tests

* cs-fix

* skipping all tests since they are live

* Bumped php version

* Removed Null safe returns

* removed credentials

* fix psalm

* php CurlHandle

* Removed null safe from status enum

* dotenv for testing

* protected properties

* all .env in setup

* Create Invoice within a Test, Throw if variables aren't set

* Cleaned up Setup

* cs fix

* Cleaned up isset env vars

* fixed phpunit indent
2022-10-26 23:35:00 +02:00
Ingrid Beilová
71dfb4d83f
Replace return type int with float (#71)
This method returns fee rate as float, not int. At least with development on testnet I received response of this method as:
array(1) {
  ["feeRate"]=>
  float(1)
}
2022-10-23 17:01:12 +02:00
utxo.one
e4af09289b
Update php version (#76) 2022-10-23 16:59:35 +02:00
utxo.one
ceb7b28d4f
Update php version on github workflow (#75) 2022-10-23 16:58:55 +02:00
utxo.one
cc9ab93a8e
Added Missing Invoice Getter Methods (#72)
Some checks failed
Code Style / php-cs-fixer (push) Has been cancelled
PHP Unit Tests / phpunit (7.3, latest) (push) Has been cancelled
PHP Unit Tests / phpunit (7.4, latest) (push) Has been cancelled
PHP Unit Tests / phpunit (8.0, latest) (push) Has been cancelled
PHP Unit Tests / phpunit (8.1, latest) (push) Has been cancelled
Static analysis (Psalm) / Psalm (7.3) (push) Has been cancelled
* Added Missing Invoice Getter Methods
2022-09-12 23:30:25 +02:00
Andreas Tasch
3e39b11749
Add undocumented param secret to workaround BTCPay Server bug. (#69)
Some checks failed
Code Style / php-cs-fixer (push) Has been cancelled
PHP Unit Tests / phpunit (7.3, latest) (push) Has been cancelled
PHP Unit Tests / phpunit (7.4, latest) (push) Has been cancelled
PHP Unit Tests / phpunit (8.0, latest) (push) Has been cancelled
PHP Unit Tests / phpunit (8.1, latest) (push) Has been cancelled
Static analysis (Psalm) / Psalm (7.3) (push) Has been cancelled
* Add $secret param on updateWebhook() which is needed to work around a bug in BTCPay Server versions <= 1.6.3.0.
2022-08-18 00:08:29 +02:00
Andreas Tasch
155c182d12
Make autoApproveClaims optional. (#67)
Some checks failed
Code Style / php-cs-fixer (push) Has been cancelled
PHP Unit Tests / phpunit (7.3, latest) (push) Has been cancelled
PHP Unit Tests / phpunit (7.4, latest) (push) Has been cancelled
PHP Unit Tests / phpunit (8.0, latest) (push) Has been cancelled
PHP Unit Tests / phpunit (8.1, latest) (push) Has been cancelled
Static analysis (Psalm) / Psalm (7.3) (push) Has been cancelled
* Make autoApproveClaims optional.
2022-07-28 14:17:48 +02:00
Oleg
6bfa9de056
Update PullPayments client, payout_usage.php (#61)
Add new autoApproveClaims parameter. Fix example function names on payout_usage.php.
2022-07-28 11:59:14 +02:00
Andreas Tasch
a2514998c7
Merge pull request #66 from ndeet/wh-signature-validation
Webhook example to use libraries webhook validation function.
2022-07-28 11:18:36 +02:00
Andreas Tasch
95a2037401 Webhook example to use libraries webhook validation function. 2022-07-28 11:13:03 +02:00
Andreas Tasch
75843d41f5
Merge pull request #64 from Igi773/patch-1
Fix markPayoutAsPaid in PullPayment.php
2022-07-28 10:29:00 +02:00
Igi773
17b23895d8 Merge remote-tracking branch 'origin/patch-1' into patch-1 2022-07-26 05:13:10 -05:00
Ingrid Beilová
6ebd996cb9 Update PullPayment.php
Add space before and after the dot, so it is consistent with the other code.
2022-07-26 05:12:16 -05:00
Ingrid Beilová
16c7ab6793
Update PullPayment.php
Add space before and after the ```.``` so it is consistent with the other code.
2022-07-26 04:59:47 -05:00
Ingrid Beilová
6311443426
Update PullPayment.php
Fix missing "mark-paid" URI parameter
https://docs.btcpayserver.org/API/Greenfield/v1/#operation/PullPayments_MarkPayoutPaid
2022-07-21 12:09:09 -05:00
Andreas Tasch
9f02bbe4df
Merge pull request #56 from ndeet/webhook-update
Webhook: Added updateWebhook()
2022-07-11 16:34:22 +02:00