Fix WooCommerce API call
This commit is contained in:
parent
7dfd18b33a
commit
e098d65297
1 changed files with 2 additions and 1 deletions
|
@ -60,7 +60,7 @@ payWooOrder ::
|
||||||
-> BS.ByteString -- Total ZEC for order
|
-> BS.ByteString -- Total ZEC for order
|
||||||
-> IO ()
|
-> IO ()
|
||||||
payWooOrder u i o t p z = do
|
payWooOrder u i o t p z = do
|
||||||
wooReq <- parseRequest u
|
wooReq <- parseRequest $ u ++ "wc-api/zpmtcallback"
|
||||||
let req =
|
let req =
|
||||||
setRequestQueryString
|
setRequestQueryString
|
||||||
[ ("token", Just t)
|
[ ("token", Just t)
|
||||||
|
@ -70,6 +70,7 @@ payWooOrder u i o t p z = do
|
||||||
, ("totalzec", Just z)
|
, ("totalzec", Just z)
|
||||||
]
|
]
|
||||||
wooReq
|
wooReq
|
||||||
|
print req
|
||||||
res <- httpLBS req
|
res <- httpLBS req
|
||||||
if getResponseStatus res == ok200
|
if getResponseStatus res == ok200
|
||||||
then return ()
|
then return ()
|
||||||
|
|
Loading…
Reference in a new issue