mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Update payment_type
& status check
This commit is contained in:
parent
b3e81fd8f2
commit
d7f01efcd6
@ -178,13 +178,13 @@ class BankTransfer implements MethodInterface
|
||||
$data = [
|
||||
'gateway_type_id' => GatewayType::BANK_TRANSFER,
|
||||
'amount' => array_sum(array_column($this->mollie->payment_hash->invoices(), 'amount')) + $this->mollie->payment_hash->fee_total,
|
||||
'payment_type' => PaymentType::CREDIT, // @todo: Missing payment type for bank transfer.
|
||||
'payment_type' => PaymentType::MOLLIE_BANK_TRANSFER,
|
||||
'transaction_reference' => $payment->id,
|
||||
];
|
||||
|
||||
$payment_record = $this->mollie->createPayment(
|
||||
$data,
|
||||
$payment->status === 'paid' ? Payment::STATUS_COMPLETED : Payment::STATUS_PENDING
|
||||
$status === 'paid' ? Payment::STATUS_COMPLETED : Payment::STATUS_PENDING
|
||||
);
|
||||
|
||||
SystemLogger::dispatch(
|
||||
|
Loading…
x
Reference in New Issue
Block a user