Skip to content
Snippets Groups Projects
Commit 1130b17e authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Some debug prints about Stripe failures

parent 60957c49
No related branches found
No related tags found
1 merge request!42Configurable stripe endpoint
......@@ -154,7 +154,10 @@ charge d stripeConfig (Charges token voucher amount currency) = do
-&- tokenId
-&- MetaData [("Voucher", voucher)]
case result of
Left StripeError {} -> throwIO PaymentFailed
Left err -> do
print "Stripe createCharge failed:"
print err
throwIO PaymentFailed
Right result -> return result
checkVoucherMetadata :: MetaData -> Handler Acknowledgement
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment