1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Fix value after payment

This commit is contained in:
Benjamin Beganović 2020-10-26 14:55:48 +01:00
parent e5670ed313
commit f3e578cc5c

View File

@ -56,7 +56,7 @@ trait Utilities
$data = [
'payment_method' => $_payment->source['id'],
'payment_type' => PaymentType::parseCardType(strtolower($_payment->source['scheme'])),
'amount' => $this->checkout->payment_hash->data->value,
'amount' => $this->checkout->payment_hash->data->raw_value,
];
$payment = $this->checkout->createPayment($data, \App\Models\Payment::STATUS_COMPLETED);