Add debugging to WooCommerce endpoint

This commit is contained in:
Rene Vergara 2023-06-23 11:45:07 -05:00
parent 7672cdc083
commit 5ffb1b4a83
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2

View file

@ -103,7 +103,9 @@ payWooOrder u i o t p z = do
res <- httpLBS req
if getResponseStatus res == ok200
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 o s =