Skip to content

Commit 60e6be5

Browse files
authored
Fixes #136 by adding BTCPay >=2.0 parameter. (#141)
1 parent 7d244da commit 60e6be5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/payout_usage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function createPullPayment()
4343
$autoApproveClaims = false;
4444
$startsAt = null;
4545
$expiresAt = null;
46-
$paymentMethods = ['BTC'];
46+
$paymentMethods = ['BTC-CHAIN'];
4747

4848
try {
4949
$client = new PullPayment($this->host, $this->apiKey);
@@ -163,7 +163,7 @@ public function createPayout()
163163
$pullPaymentId = '';
164164
$destination = '';
165165
$amount = PreciseNumber::parseString('0.000001');
166-
$paymentMethod = '';
166+
$paymentMethod = 'BTC-CHAIN';
167167

168168
try {
169169
$client = new PullPayment($this->host, $this->apiKey);

src/Client/PullPayment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ public function createPayout(
244244
'destination' => $destination,
245245
'amount' => $amount->__toString(),
246246
'paymentMethod' => $paymentMethod,
247+
'payoutMethodId' => $paymentMethod, // BTCPay 2.0.0 compatibilty
247248
],
248249
JSON_THROW_ON_ERROR
249250
);

0 commit comments

Comments
 (0)