Correct Xero payment confirmation
This commit is contained in:
parent
6e0cb54032
commit
013feabd20
2 changed files with 3 additions and 1 deletions
|
@ -463,5 +463,6 @@ payXeroInvoice pipe dbName inv address amt zec = do
|
||||||
setRequestHost "api.xero.com" $
|
setRequestHost "api.xero.com" $
|
||||||
setRequestMethod "PUT" defaultRequest
|
setRequestMethod "PUT" defaultRequest
|
||||||
res <- httpJSON req :: IO (Response Object)
|
res <- httpJSON req :: IO (Response Object)
|
||||||
|
print res
|
||||||
return ()
|
return ()
|
||||||
else error "Invalid parameters"
|
else error "Invalid parameters"
|
||||||
|
|
|
@ -747,7 +747,8 @@ routes pipe config = do
|
||||||
]
|
]
|
||||||
False
|
False
|
||||||
(xi_number xI)
|
(xi_number xI)
|
||||||
(xi_shortcode xI)
|
(xr_shortCode
|
||||||
|
invReq)
|
||||||
(T.pack tk)
|
(T.pack tk)
|
||||||
_ <-
|
_ <-
|
||||||
liftAndCatchIO $
|
liftAndCatchIO $
|
||||||
|
|
Loading…
Reference in a new issue