Skip to content

Commit

Permalink
Add gateway id on create transaction from invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianGabs committed Jun 11, 2024
1 parent 4ab99ac commit f5ea994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BTCPay.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ protected function createTransactionTxn(Model_Invoice $invoice, array $request,
try {
$transaction = $this->di['db']->dispense('Transaction');
$transaction->invoice_id = $invoice->id;
$transaction->gateway_id = 6;
$transaction->gateway_id = $invoice->gateway_id;;
$transaction->txn_id = $request['id'];
$transaction->txn_status = $request['status'];
$transaction->amount = $invoice->base_income;
Expand Down

0 comments on commit f5ea994

Please sign in to comment.