Skip to content

Commit

Permalink
BTCPay 2.0 compatibilty for pull payments due to changed parameter name.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndeet committed Nov 22, 2024
1 parent f4fac20 commit 09f734a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Client/PullPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function createPullPayment(
?bool $autoApproveClaims = false,
?int $startsAt,
?int $expiresAt,
array $paymentMethods,
?array $paymentMethods = null,
?string $description = null
): ResultPullPayment {
$url = $this->getApiUrl() . 'stores/' .
Expand All @@ -70,7 +70,8 @@ public function createPullPayment(
'autoApproveClaims' => $autoApproveClaims,
'startsAt' => $startsAt,
'expiresAt' => $expiresAt,
'paymentMethods' => $paymentMethods
'paymentMethods' => $paymentMethods,
'payoutMethods' => $paymentMethods
],
JSON_THROW_ON_ERROR
);
Expand Down

0 comments on commit 09f734a

Please sign in to comment.