Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
monero-project
CCS Backend
Commits
d0bed8fe
Commit
d0bed8fe
authored
Jan 27, 2019
by
xiphon
Browse files
WalletNotify: use new Deposit Model instance to create a deposit
parent
13f28cc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Console/Commands/WalletNotify.php
View file @
d0bed8fe
...
...
@@ -140,15 +140,14 @@ class walletNotify extends Command
*/
public
function
createDeposit
(
Transaction
$transaction
)
{
return
Deposit
::
create
([
'tx_id'
=>
$transaction
->
id
,
'amount'
=>
$transaction
->
amount
,
'confirmations'
=>
$transaction
->
confirmations
,
'payment_id'
=>
$transaction
->
paymentId
,
'time_received'
=>
$transaction
->
time_received
,
'block_received'
=>
$transaction
->
blockHeight
,
]);
$deposit
=
new
Deposit
;
$deposit
->
tx_id
=
$transaction
->
id
;
$deposit
->
amount
=
$transaction
->
amount
;
$deposit
->
confirmations
=
$transaction
->
confirmations
;
$deposit
->
payment_id
=
$transaction
->
paymentId
;
$deposit
->
time_received
=
$transaction
->
time_received
;
$deposit
->
block_received
=
$transaction
->
block_height
;
$deposit
->
save
();
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment