File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments