Fix problem with payment confirmations
This commit is contained in:
parent
f21700f88b
commit
9a87d43459
1 changed files with 2 additions and 4 deletions
|
@ -1466,9 +1466,7 @@ scanPayments config pipe = do
|
||||||
Nothing -> error "Failed to retrieve order from database"
|
Nothing -> error "Failed to retrieve order from database"
|
||||||
Just xO ->
|
Just xO ->
|
||||||
when
|
when
|
||||||
(not (qpaid xO) &&
|
(not (qpaid xO) && qtotalZec xO == snd x && z == qaddress xO) $ do
|
||||||
qexternalInvoice xO /= "" &&
|
|
||||||
qtotalZec xO == snd x && z == qaddress xO) $ do
|
|
||||||
let sReg = mkRegex "(.*)-([a-fA-f0-9]{24})"
|
let sReg = mkRegex "(.*)-([a-fA-f0-9]{24})"
|
||||||
let sResult = matchAllText sReg (T.unpack $ qsession xO)
|
let sResult = matchAllText sReg (T.unpack $ qsession xO)
|
||||||
if not (null sResult)
|
if not (null sResult)
|
||||||
|
@ -1529,7 +1527,7 @@ scanPayments config pipe = do
|
||||||
else error
|
else error
|
||||||
"Couldn't parse externalInvoice for WooCommerce"
|
"Couldn't parse externalInvoice for WooCommerce"
|
||||||
_ -> putStrLn "Not an integration order"
|
_ -> putStrLn "Not an integration order"
|
||||||
else putStrLn "Not an integration order"
|
else liftIO $ access p master dbName $ markOrderPaid x
|
||||||
|
|
||||||
-- | RPC methods
|
-- | RPC methods
|
||||||
-- | List addresses with viewing keys loaded
|
-- | List addresses with viewing keys loaded
|
||||||
|
|
Loading…
Reference in a new issue