Add debugging to WooCommerce endpoint
This commit is contained in:
parent
7672cdc083
commit
5ffb1b4a83
1 changed files with 3 additions and 1 deletions
|
@ -103,7 +103,9 @@ payWooOrder u i o t p z = do
|
||||||
res <- httpLBS req
|
res <- httpLBS req
|
||||||
if getResponseStatus res == ok200
|
if getResponseStatus res == ok200
|
||||||
then return ()
|
then return ()
|
||||||
else error "Failed to report payment to WooCommerce"
|
else do
|
||||||
|
print $ getResponseStatus res
|
||||||
|
error "Failed to report payment to WooCommerce"
|
||||||
|
|
||||||
generateWooToken :: Owner -> String -> Action IO ()
|
generateWooToken :: Owner -> String -> Action IO ()
|
||||||
generateWooToken o s =
|
generateWooToken o s =
|
||||||
|
|
Loading…
Reference in a new issue