Fix WooCommerce API call

This commit is contained in:
Rene Vergara 2022-12-06 12:09:35 -06:00
parent 7dfd18b33a
commit e098d65297
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2

View file

@ -60,7 +60,7 @@ payWooOrder ::
-> BS.ByteString -- Total ZEC for order
-> IO ()
payWooOrder u i o t p z = do
wooReq <- parseRequest u
wooReq <- parseRequest $ u ++ "wc-api/zpmtcallback"
let req =
setRequestQueryString
[ ("token", Just t)
@ -70,6 +70,7 @@ payWooOrder u i o t p z = do
, ("totalzec", Just z)
]
wooReq
print req
res <- httpLBS req
if getResponseStatus res == ok200
then return ()